View Rendered/Generated HTML Source (1 Viewer)

Pekabo

Portal Member
March 20, 2011
17
1
Home Country
Germany Germany
Hi,

is it possible to get the current page's HTML source, in its current state (even if modified by scripts, AJAX calls, etc.)
You can try following Javascript put it inte adressbar of your browser and hit enter. Now you see the source code including all changes that made by scripts, AJAX calls, etc. For me it is usefull because some sites try to hide the videourl with javascripts.

Code:
javascript:if%20(window.document.body.outerHTML%20!=%20undefined){'<xmp>'+window.document.body.outerHTML+'</xmp>'}%20else%20if%20(document.getElementsByTagName("html")[0].innerHTML%20!=%20undefined){'<xmp>'+document.getElementsByTagName("html")[0].innerHTML+'</xmp>'}%20else%20if%20(window.document.documentElement.outerHTML%20!=%20undefined){'<xmp>'+window.document.documentElement.outerHTML+'</xmp>'}%20else%20{%20alert('Your%20browser%20does%20not%20support%20View%20Generates')%20};
 

Users who are viewing this thread

Top Bottom