...

View Full Version : Read pagesource using javascript



zerandib
01-27-2009, 06:49 AM
Hello

How to read the entire page source from a webpage by using java scripts!
(<html> to </html>)
Is it possible to such kind of thing using Java scripts!
(simply i wants to read the page source in the client side...)

any idea :confused:

abduraooft
01-27-2009, 07:16 AM
<script type="text/javascript" >
window.onload=function(){
var str=document.getElementsByTagName('html')[0].innerHTML;
alert(str);
}
</script>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum