Menu
Hi all!
I am all new to Java Script and have just started looking at functions.
I have jast made the simplest of scripts, (in a file called “simple.html”):
<html>
<head>
<SCRIPT LANGUAGE=”JavaScript”>
function simple()
{
document.write(“Simple”);
}
</SCRIPT>
</head>
<body><a href=”JavaScript:simple()”>CLICK</a></body>
</html>
As long as I do not use the function the script runs fine in Firefox, but with the function when I click my href firefox prints the word “Simple” but Firefox continues to say loading…. and never stops. Works fine in IE. What am I doing wrong?
Many many thanks!!
Marcux