| Author |
disable javascript for browser
|
lily zou
Ranch Hand
Joined: Jan 15, 2002
Posts: 50
|
|
I have a html page which has a image button. OnClick action on that button will envoke a javascript function to open a window if javascript is enabled by browser. The same contents will be displayed in main window if browser is not supporting javascript. However, when I click the button, the contents gets displayed both in popup window and main window. It worked fine so far. May I ask if any one has idea about why browser goes crazy and execute both of them? Thanks a lot, Lily
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15362
|
|
|
Well I need to see the code that you are using in order to show you want the problem is.
|
 |
lily zou
Ranch Hand
Joined: Jan 15, 2002
Posts: 50
|
|
this is the html code got by "view source": [a href="ABC" [onclick]="showHelpMenu('ABC'); return false"][img border="0" src="./images/en/help.gif" alt="Help" ][a] It worked fine so far but all the sudden......
|
 |
lily zou
Ranch Hand
Joined: Jan 15, 2002
Posts: 50
|
|
|
I used [ and ] in some places since I can not use html code as it is. the [ and ] around onclik is for the same reason
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15362
|
|
<a href="ABC" onclick="showHelpMenu(this.href); return false"><img border="0" src="./images/en/help.gif" alt="Help"></a> See if that helps... I have to run to work, so I can not think of any other solution, even thought I think there is one. Eric
|
 |
 |
|
|
subject: disable javascript for browser
|
|
|