By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,843 Members | 864 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,843 IT Pros & Developers. It's quick & easy.

viewing javascript generated html code

P: n/a
Hi
I was wondering if there was a way to view the html code that javascript
produced since viewing the source code shows the javascript if statements
for netcrape and IE etc.

thanks
Neil Morris

--
my IE6 favorites for import into Netscape/Internet Explorer
www.Neilmorris.btinternet.co.uk/bookmark.htm
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a


Neil Morris wrote:
Hi
I was wondering if there was a way to view the html code that javascript
produced since viewing the source code shows the javascript if statements
for netcrape and IE etc.


Create a bookmark
javascript: if (document.body) { alert(document.body.innerHTML); } void 0
when you click that the current innerHTML of the <body> element is
displayed in an alert dialog.
Also with Netscape 7.1 you can select any text on the page, right click
and choose view selection and the HTML is shown in a view source window

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.