javascript getting complete code of element when mouseover or onclick
Posted
by oimoim
on Stack Overflow
See other posts from Stack Overflow
or by oimoim
Published on 2010-04-26T12:17:24Z
Indexed on
2010/04/26
12:23 UTC
Read the original article
Hit count: 249
Hi,
How can I get the complete html code of the element i'm mouseovering or clicking ?
Using document.onmouseover = function(e){
can I get the full underlying html code of the element which triggered the event ?
Right now, I am able to get the tag name or id or whatever. What I would like is the whole code.
For example; if I'm mouseovering a table, I would like to get the string : <table><tr><td></td></tr></table>
Is this possible ?
© Stack Overflow or respective owner