|
|
Q1725 How do I avoid the main window displaying [object] when I click on a hypertext link to open a new popup window?
irt.org | Knowledge Base | JavaScript | Window | Q1725 [ previous next ] Q1725 How do I avoid the main window displaying [object] when I click on a hypertext link to open a new popup window?Instead of using the window object's open() method in the href attribute, use the onClick event handler instead. If you return false from the onClick event handler then the default action of the click event (i.e. load the url specified by the href attribute) is cancelled:
Feedback on 'Q1725 How do I avoid the main window displaying [object] when I click on a hypertext link to open a new popup window?' |
-- div -->
|