All,
I am trying to use a URL to call some javascript to do something, which
is working fine in IE6 but using the same code in Netscape 4.79 I cannot
get it to work at all.
I get no errors, but no results either, Netscrape just sits there and
does nothing ?
Below is an emample of what I am attempting to do. I have had a search
through previous posts and tried to implement some of the suggested
solutions but non seem to provide me with a solution in Netscape, even
though all of the seem to work correctly in IE
Can anyone spot what I am doing wrong ?
Thanks for the help in advance.
Martin
file1.js
function GenerateURL()
{
alert('Hello');
}
example1.jsp
<script language="javas cript" src="c:\file1.j s"></script>
<html>
<body>
<a href="javascrip t:GenerateURL() ;">Example1</a>
<br><br>
<a href="javascrip t:void(0)" onclick="Genera teURL();return
false">Example2
<br><br>
<a href="javascrip t:GenerateURL() ;void 0">Example3</a>
<br><br>
<a href="javascrip t:void(0)" onclick="Genera teURL()">Exampl e4</a>
<br><br>
<A HREF="#" onClick="Genera teURL()">Exampl e5</a>
</body>
</html>
Note: It is split across the two files for a reason
I am trying to use a URL to call some javascript to do something, which
is working fine in IE6 but using the same code in Netscape 4.79 I cannot
get it to work at all.
I get no errors, but no results either, Netscrape just sits there and
does nothing ?
Below is an emample of what I am attempting to do. I have had a search
through previous posts and tried to implement some of the suggested
solutions but non seem to provide me with a solution in Netscape, even
though all of the seem to work correctly in IE
Can anyone spot what I am doing wrong ?
Thanks for the help in advance.
Martin
file1.js
function GenerateURL()
{
alert('Hello');
}
example1.jsp
<script language="javas cript" src="c:\file1.j s"></script>
<html>
<body>
<a href="javascrip t:GenerateURL() ;">Example1</a>
<br><br>
<a href="javascrip t:void(0)" onclick="Genera teURL();return
false">Example2
<br><br>
<a href="javascrip t:GenerateURL() ;void 0">Example3</a>
<br><br>
<a href="javascrip t:void(0)" onclick="Genera teURL()">Exampl e4</a>
<br><br>
<A HREF="#" onClick="Genera teURL()">Exampl e5</a>
</body>
</html>
Note: It is split across the two files for a reason
Comment