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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2007
    Thanked 0 Times in 0 Posts

    Blocking a javascript function

    How to block a javascript function from executing.
    I have a javascript function named popup() which is added
    to <body onunload ="popup()">.
    This will popup a small window when the user closes or moves from
    the current page.
    Unfortunately this popup is being generated even when I click on Submit
    button onthe current page.
    Is there any way can we make this function not to work on
    Subumit button click.

    Any help will be appreciated.


  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    In a place far, far away...
    Thanked 1,043 Times in 1,019 Posts
    Can you post a link to your page? It sounds like you are trying to circumvent some advertisements on your free web host. You get what you pay for.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


    Posting Permissions

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