Forums
This topic is locked
Calling a javascript only for IE
Posted 11 Apr 2007 16:53:07
1
has voted
11 Apr 2007 16:53:07 Jason Calvert posted:
I want to call a javascript only in IE. I've tried:<!--[if IE]>
<script language="JavaScript" src="Java Script Folder/myscript.js" type="text/javascript"></script>
<![endif]-->
But that doesn't work.
How can I call a script only if the site is running on IE?
Replies
Replied 14 Apr 2007 10:40:39
14 Apr 2007 10:40:39 Lee M replied:
Hi Jason..
I used this for IE6 and below and I know its working...
<!--[if lt IE 7]>
<script type="text/javascript" src="/inc/pngfix.js"></script>
<![endif]-->
Might help might not
I used this for IE6 and below and I know its working...
<!--[if lt IE 7]>
<script type="text/javascript" src="/inc/pngfix.js"></script>
<![endif]-->
Might help might not