Two Laptop Bag*
The moose likes HTML, CSS and JavaScript and the fly likes disable javascript for browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "disable javascript for browser" Watch "disable javascript for browser" New topic
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: 15376
    
    6
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: 15376
    
    6
<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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: disable javascript for browser
 
Similar Threads
applet and JDialog
Open a window on close of main window
return false still submit the page in IE
How to Hide the browser Close & minimise button
POPUP