Re: Scripts in (X)HTML

Lachlan Hunt wrote:
> var x = document.getElementById("xxx");
> x.appendChild(document.createTextNode("This "))
> var a = document.createElement("a");
> a.setAttribute("href", "http://chatter.flooble.com/");

I forgot to add the actual link text.  That is accomplished with the 
following very simple line:

a.appendChild(document.createTextNode("flooble chatterbox"));

I also left two semi-colons of the original, just add them to the end of 
the lines that are missing them.

> x.appendChild(a);
> x.appendChild(document.createTextNode(" is temporarily unavailable..."))

-- 
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/    Rediscover the Web
http://SpreadFirefox.com/   Igniting the Web

Received on Monday, 31 January 2005 04:57:31 UTC