Re: block writing
- From: hendedav@xxxxxxxxx
- Date: Thu, 28 Feb 2008 11:15:39 -0800 (PST)
On Feb 28, 1:41 pm, Jim <j_gree...@xxxxxxxxx> wrote:
Does this not work?
var element = document.getElementById("divTFooter");
element.appendChild(document.createTextNode('this is an example of a
link: <a href="test.html">link</a>'));
note the use of SINGLE quotes (')
Jim
Jim, it would work except if there is javascript in any of the xhtml,
then I am back to square one. I thought I had come across a way to do
it once, and apparently didn't write it down or store an example. The
reason I am trying to do this is because I have several pages that
have the same text/code and I would like to have javascript populate
those areas so a single change to the javascript will be a global
change. Using several document.writes gets messy so I was looking for
a better way.
Dave
.
- Follow-Ups:
- Re: block writing
- From: Joost Diepenmaat
- Re: block writing
- 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
- Re: block writing
- From: Joost Diepenmaat
- Re: block writing
- From: hendedav
- Re: block writing
- From: Jim
- block writing
- Prev by Date: Re: Create an 'account password' input field
- Next by Date: Re: webcrawler (bot) in javascript?
- Previous by thread: Re: block writing
- Next by thread: Re: block writing
- Index(es):
Relevant Pages
|