[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
On Sun, 19 Jul 2009 09:09:50 +0100, tom <tompotts@xxxxxxxxxxxxxxxxxxxx> wrote: >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> I get - TODO write content in FF 3.5.1, Win XP pro if I disable noscript I get a 'works2' popup Dave -- http://www.eclipse.co.uk/morgad/index.html DP: http://www.pgdp.net NTP: http://www.pool.ntp.org L&B: http://www.lynton-rail.co.uk -- 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