HighDots Forums  

viewing javascript generated html code

Javascript JavaScript language (comp.lang.javascript)


Discuss viewing javascript generated html code in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Neil Morris
 
Posts: n/a

Default viewing javascript generated html code - 09-21-2003 , 05:25 AM






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



Reply With Quote
  #2  
Old   
Martin Honnen
 
Posts: n/a

Default Re: viewing javascript generated html code - 09-21-2003 , 05:40 AM








Neil Morris wrote:

Quote:
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/



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.