Re: IE8 - jscript - layers

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"Evertjan." <exjxw.hannivoort@xxxxxxxxxxxx> wrote in message
news:Xns9B08621B940EEeejj99@xxxxxxxxxxxxxxxxxx
Hotrod Harry wrote on 28 aug 2008 in microsoft.public.scripting.jscript:

<a href="javascript:hideAll(), ShowContent('nab11')"></a>

With the comma, it would never work, not in IE8, nor in IE0.3.


Slap this in a HTML file an open it in a browser:-

<a href="javascript:alert('This will not work'), alert('oops it
does')">Click Me</a>

You can read what the documentation says about the comma operator here:-

http://msdn.microsoft.com/en-gb/library/9b37css7(VS.85).aspx


--
Anthony Jones - MVP ASP/ASP.NET


.