Putting DIV wrapper around all code in body
- From: andrej.kaurin@xxxxxxxxx
- Date: Sun, 30 Mar 2008 11:02:29 -0700 (PDT)
I need to put all body content into wrapper when page is loaded. Via
javascript of course.
Initial DOM
<body>
<div>
<p>Some text</p>
<p>More text</p>
</div>
</body>
Modified DOM with javascript
<body>
<div id="myWrapper">
<div>
<p>Some text</p>
<p>More text</p>
</div>
<div>
</body>
Any idea?
.
- Follow-Ups:
- Re: Putting DIV wrapper around all code in body
- From: Duncan Booth
- Re: Putting DIV wrapper around all code in body
- From: Thomas 'PointedEars' Lahn
- Re: Putting DIV wrapper around all code in body
- From: VK
- Re: Putting DIV wrapper around all code in body
- From: Alexey Kulentsov
- Re: Putting DIV wrapper around all code in body
- Prev by Date: Re: Other scripting languages?
- Next by Date: Re: Window and iframe question
- Previous by thread: Free Tutorial website And Ebooks programing tutorials
- Next by thread: Re: Putting DIV wrapper around all code in body
- Index(es):
Relevant Pages
|