Results 1 to 4 of 4

Thread: submit vs button

  1. #1
    Join Date
    May 2005
    Posts
    141
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default submit vs button

    i am using this script, http://www.dynamicdrive.com/dynamicindex9/password.htm, and i wanted to change the button that is for submitting from a type="button" to a type="submit" so that you dont have to click on the button, and you can just hit enter. when i change this however, it messes it up by making it so that after you submit the right username/password, it refreshes the page instead of going to the new one. i think it is because there is a onClick="submitentry()" , but i dont know. so any help would be appreciated. thank you

  2. #2
    Join Date
    May 2005
    Posts
    141
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    another thing is that this is in a pop up window that has no menus or anything. is it possible to make it that when you submit it, the page maximizes, and gets all the toolbars and stuff back

  3. #3
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    To use a submit button instead of the regular button, try removing:

    Code:
    <input type="button" value="Submit" onClick="submitentry()">
    and replacing that with:

    Code:
    <input type="submit" value="Submit" onClick="submitentry(); return false">
    There's no way to change a toolbarless window into toolbars however.

  4. #4
    Join Date
    May 2005
    Posts
    141
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    is there a way that it sorta closes the current window, and opens up a new one?

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
  •