Hi, I was just wondering if there's any way where I can read the HTML tags associated with an element. My requirement is as follows: 1. I have a web page. 2. I would click on some element in the web page, say a text field. 3. I would want to retrieve the HTML definition of the element.
I know there are tools like FireBug using which we can manually retrieve the information. I'm looking for someway where I write a script which lets me retrieve the tag info on click.
What I'm looking for is an application where in, if I do a click on any field of some web page, I would want to get the information of how it has been defined in the DOM. i.e., For ex: if I click on some "button", what i'm looking for is the HTML tag which describes this element, i.e, "<input type="button"...>" in this case.
Joined: May 13, 2005
To be precise what i'm looking for a DOM inspector API. Is there any such API available?