Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: changing


Message #1 by "Mihai Cristian Bocai" <mihai.bocai@r...> on Sun, 22 Apr 2001 19:07:04 +0300
Suppose this html code:

......
<div id="l1">Some text</div>
..........

Now in IE I can do this:

document.all.l1.innerText="Some other text"

and associate this line of code to a button let's say, or to a specific
event (OnMouseUp, OnClick,.......etc).


How can I do this in NS4+ ?

<div> tag is supported by NS only from v6+, but we can access the <div> like
this:

document["l1"].document.some object in the div

any opinion is appreciated!
--
Bocai Mihai Cristian
Software Development Manager
mihai.bocai@r...

IN WWW Ltd
Global House
33 Springfield Avenue
London
N10 3SU




  Return to Index