View Full Version : Blocking a javascript function

12-21-2007, 08:25 PM
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.


12-21-2007, 08:27 PM
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.