Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Creating a new <Div>


  • From: javascript@xxxxxxxxxx (Andrew Gibson)
  • Subject: [Javascript] Creating a new <Div>
  • Date: Mon, 15 Apr 2002 16:26:18 +1200

> You should probably reload the page's source code and add the div command
at
> the bottom.  You could also load the function into an IE IFRAME and then
add
> the div afterwards.
>
> ====================================
> Trey: tutwabee@xxxxxxxxxxx

Thanks Trey. I looked in to the textrange object, but couldn't get it to
work, so I tried:

var myStr="<div id=myId></div>"
document.body.innerHTML=document.body.innerHTML+myStr

and this seems to do the trick without reloading the source!

Andrew Gibson
==============================================
Web Presentation Innovations: DHTML, Javascript, XML
http://www.dscript.net.nz