|
|
Q407 When I use a normal text link to open a popup window the main window is also affected - how do I avoid this?
irt.org | Knowledge Base | JavaScript | Window | Q407 [ previous next ] Q407 When I use a normal text link to open a popup window the main window is also affected - how do I avoid this?If you are attempting to load a popup window using code similar to:
Then change it to:
The following was submitted by Dan Souza What I use is the following: It always works for me. Substitute your own url of course. Using return false prevents the browser's main window from going to the url and using the url in the <a href= allows a non javascript enabled browser to go to the url
Feedback on 'Q407 When I use a normal text link to open a popup window the main window is also affected - how do I avoid this?' |
-- div -->
|