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

    Unhappy onUnload use with form submission

    I have set up a form which reload automatically when the user hits another page. I set up an OnBlur event with a focus(); function and this works well. This is the easy bit!!

    I am also trying to make the user fill in the form, and not be able to leave until it is submitted. This is a little cruel, but the feedback is necessary(compulsory really!!). Keep in mind that there is validation scripts for text fields and radio buttons as weel coded into this document.

    I believe there is a function (similar to what is below) that can be set up which would then call as an onUnload event in the <body> tag.

    function ReOpen()
    alert("Please complete the evaluation form!");

    with the body tag below

    <body onUnload="ReOpen()">

    This doesnt seem to be working very well with IE 5, but NN6 seems to work this quite well. I have been having trouble incorporating this script in with the validatoin scripts as well.


    Last edited by mmasci; 07-23-2002 at 03:22 AM.


Posting Permissions

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