Possible Duplicate:
How do I create an element after the closing body tag
Did a search, could not find this.
Is it possible to jQuery the closing </body> tag and then add some JS code just above?
IE: find:
$("</body>")
Then add some JS script just above this tag?
You don’t need to select the ‘closing’ tag, just select the body and append what you want:
update
As @meagar mentioned correctly, with jQuery you don’t select a ‘closing’ tag, but the whole ‘element’, e.g. the body, or a ‘paragraph’ (p) as a whole
Trying to make it more clear, this code:
Will produce this result:
The new paragraph is appended at the end of the body