Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jan 2003
    Posts
    148
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question closing browser window

    i have used an image to close a browser window and i have used

    onclick="wclose()"

    but i want a last confirmation message where the browsers usually ask if u wanna leave the site.it's not happening with this, how can i make it?

    also how can i make an image button so that it clears the textfields, checkboxes and radio buttons when it is clicked (sort of cancel)


  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    Well if you created the window, itt will not ask the message.
    You need to use the confirm() method.......It is like an alert...search the site, sure you will find it

    also the other question

    onclick="FormName.reset()"

  • #3
    Regular Coder
    Join Date
    Jan 2003
    Posts
    148
    Thanks
    0
    Thanked 0 Times in 0 Posts
    no it's not the window i do.it is just a web site that when the user clicks on exit they'll exit after confirming the usual message whenever it apperars when u existing a system.

  • #4
    Regular Coder
    Join Date
    Jan 2003
    Posts
    867
    Thanks
    4
    Thanked 8 Times in 8 Posts
    It is extremely unclear what you're trying to do. Do you currently have a confirmation box at any point? When do you want this confirmation box to appear?
    Last edited by arnyinc; 01-16-2003 at 05:45 PM.

  • #5
    Regular Coder
    Join Date
    Jan 2003
    Posts
    148
    Thanks
    0
    Thanked 0 Times in 0 Posts
    well i don't have an extra box which has the confirmation message. i am telling about the usual confirmation message that internet explorer gives when u try to exit from a page.

    to sum up it is not an extra box but instead it is one of the pages that i am setting up for a site and it has exit button to exit from the site.

    hope this makes it clear?


  •  

    Posting Permissions

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