Grab Body contents and wrap it within an element to show sort of like an
iframe
Ok, so I want all of the html within the body tag to be wrapped within a
<div class="wrap" /> that should be created on-the-fly. This code needs to
run from within the <body> tag itself, so am thinking we'll need to append
the code to the head or the first <script> tag and run it from there.
I want it to basically output the entire body contents into a div on that
same page, with scrollbars as needed ofcourse, so overflow: auto; and will
most likely need to use .wrapInner, but am not sure how to handle it
completely. I don't want to wrap any elements besides all elements within
the body tag. So it should than be inserted into a <div class="wrap" />
and will sort of mimic the idea of an iframe, but not exactly.
Any ideas or code would be greatly appreciated!
No comments:
Post a Comment