[Javascript] syntax

Kromel Jan jan.kromel at lynx.sk
Fri Oct 12 06:27:28 CDT 2007


Hmmm... if i do this:
href=\'onmousedown=\'document.getElementById(\'TestL\').style.visibility
=\'hidden\'\'\'
I get onmousedown= not found...

-----Original Message-----
From: javascript-bounces at lists.evolt.org
[mailto:javascript-bounces at lists.evolt.org] On Behalf Of Jens Brueckmann
Sent: Friday, October 12, 2007 1:07 PM
To: JavaScript List
Subject: Re: [Javascript] syntax

> No corresponding delimiters for opening quotation marks in: <a
href=\'\'
> = where?

Have a look at the HREF attribute:
 
href=\'\'onmousedown=\'document.getElementById(\'TestL\').style.visibili
ty=\'hidden\'\'

no eliminate corresponding delimiters \':

1.
href=\'\'onmousedown=\'document.getElementById(\'TestL\').style.visibili
ty=\'hidden\'\'
2.
href=\'\'onmousedown=\'document.getElementById(\'TestL\').style.visibili
ty=\'
3. href=\'\'onmousedown=\'document.getElementById().style.visibility=\'
4. href=\'\'onmousedown=

You see, the HREF attribute starts with surplus delimiters \'\', but
has no delimiter at its end.

Changing the attribute to:

href=\'onmousedown=\'document.getElementById(\'TestL\').style.visibility
=\'hidden\'\'\'

fixes this error.

Cheers,

jens

-- 
Jens Brueckmann
http://www.yalf.de
_______________________________________________
Javascript mailing list
Javascript at lists.evolt.org
http://lists.evolt.org/mailman/listinfo/javascript





More information about the Javascript mailing list