Results 1 to 2 of 2

Thread: How to open a new window upon clicking the submission button of password...

  1. #1
    Join Date
    Sep 2005
    Location
    Here
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to open a new window upon clicking the submission button of password...

    Hi, everyone. I'm an HTML newbie and would like to ask all of you intelligent people out there for some help. As I am currently developing a password-protected website for my student group, I would like to know how to open a new window when clicking on the submission button after the username and password is entered.

    As per Dynamic Drive's code for encrypted passwords, there is a code included that is as follows:

    {
    window.location="members.htm"}
    else{
    alert("Invalid Password/Username Combination")}
    }

    The window.location portion indicates the site to which the current window will open. However, I am using frames for my site and I would like users to be directed to a site that offers "members only" items. More over, I would like a new window to be opened upon the password submission.

    Is it possible to do this??? If anyone is knowledgeable of this particular situation and can help me solve it with an accompanying code, please reply. I would appreciate very much.

    Thank you all and take care!

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    window.open("members.htm");
    It is advised to use server-side password techniques for security. These techniques will keep the newbies out, but anyone with experience will be able to break a Javascript password. In fact, anyone with the slightest knowledge of HTML will be able to break that code, simply by going to "members.htm."
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •