Hey, please help me, this html file run normally in other browser but Firefox.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Hello everyone... </title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!-- Redirect webpage <meta http-equiv="refresh" content="2; url=/web/forum/vanilla" /> -->
</head>
<body>
<script language="javascript" type="text/javascript">
function clickMe(){
var clickLink = document.getElementById("link2Click");
clickLink.onClick = promptWhatsName();
} // End function clickMe
function promptWhatsName(){
var yourName = prompt("What is your name?", "Your name here...");
if (yourName == null || yourName == ""){
alert("You must enter your name.");
return false;
}
if (yourName.length < 10){
alert("Your name must be over 10 character in length.");
return false;
} else {
document.write("Hello, " + yourName);
return true;
}; // End if
}// End function promptWhatsName
</script>
<!-- no script for old browser -->
<noscript>
Your browser doesn't support Javascript.
</noscript>
<a href="javascript:;" id="link2Click" onClick="clickMe()">Click me!</a>
</body>
</html>
See more detail in this video: http://www.youtube.com/watch?v=dS1-_NLDBYU
I tested in other Firefox on other OS (Windows XP).
And I tried href="#", it doesn't show me result in Firefox like Chrome, Konqueror