You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Cyber Sagar <cy...@pol.net.in> on 2002/03/13 16:46:47 UTC

JavaScript problem. please help me.

Dear friends,
I have a strange problem. please help me
 
I have to execute 2 scripting files in a html page (One is compatible for
Internet explorer and anotherone is for netscape)
ie.js
netscape.js
how can i call these 2 scripts in my html file to make compatible for both
IE and Netscape.
I have to use only one html file to run these scripts in their respective
browsers
My code in html page is like this..  (menu.html)
 

<!--First script for IE-->
 
<script language="JavaScript" src="ie.js">
</script>
<script language="JavaScript">
  new menu (MENU_ITEMS, MENU_POS1, MENU_STYLES1);
</script>
 

<!--Second script for NetScript-->
 
<script language="JavaScript" src="netscape.js">
</script>
<Body leftmargin="0" rightmargin="0" topmargin="0" marginwidth="0"
marginheight="0" onLoad="writeMenus()">
 
======================================
end
======================================
 
if i execute these scripts individually, these are working.
 
please help me how can i execute netscape.js in netscape browser and ie.js
in internet explorer, with this single html file.
 
Your kind cooperation would be greatly appreciated.
 
Thanks in advance.
 
Yours
Sagar