Re: block writing
- From: SAM <stephanemoriaux.NoAdmin@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 28 Feb 2008 20:11:17 +0100
hendedav@xxxxxxxxx a écrit :
I tried, as you suggested, and it didn't work as I thought. The
below is the code:
var element = document.getElementById("divTFooter");
element.appendChild(document.createTextNode("this is an example of a
link: <a href="test.html">link</a>"));
and I got a "missing ) after argument list" error after the quote
right before the test.html name.
With the string delimited by simple quotes instead of double ones :
element.appendChild(document.createTextNode('this is an example of a
link: <a href="test.html">link<\/a>'));
Or escaping the inside double quotes :
element.appendChild(document.createTextNode("this is an example of a
link: <a href=\"test.html\">link<\/a>"));
--
sm
.
- References:
- block writing
- From: hendedav
- Re: block writing
- From: Erwin Moller
- Re: block writing
- From: Joost Diepenmaat
- Re: block writing
- From: hendedav
- Re: block writing
- From: Joost Diepenmaat
- Re: block writing
- From: hendedav
- block writing
- Prev by Date: How to set focus to a div?
- Next by Date: Re: Create an 'account password' input field
- Previous by thread: Re: block writing
- Next by thread: Display text when mouse over an object
- Index(es):