[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
I've had some weird behaviour in JS in a windows FF3.5.1 on a W2k
Machine which seems to be related to uppercase first letter in function
names !
In the following code - which seems to call msg but not MSG and JS
functions starting with uppercase letters. Error console says MSG not a
function!
Can anyone confirm/deny this
Tom te tom te tom
----------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
function MSG(){
alert('works2');
}
function msg(){
alert("works");
MSG();
}
</script>
</head>
<body onload="MSG();">
TODO write content
</body>
</html>
--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html