Hi,
I want to display all HTML source using javascript, in it's page it self.
Problem:
<html><title>Source Code</title>
<body><script LANGUAGE="JavaScript">
alert(document.body.innerHTML )
</script></body></html>
----------------------------
It only will show :
<script LANGUAGE="JavaScript">
alert(document.body.innerHTML )
</script>
----------------------------
I want it show from <html> till </html>.
This is for HTML web based editor that I still developing.
Any idea, please?
Thanks
I want to display all HTML source using javascript, in it's page it self.
Problem:
<html><title>Source Code</title>
<body><script LANGUAGE="JavaScript">
alert(document.body.innerHTML )
</script></body></html>
----------------------------
It only will show :
<script LANGUAGE="JavaScript">
alert(document.body.innerHTML )
</script>
----------------------------
I want it show from <html> till </html>.
This is for HTML web based editor that I still developing.
Any idea, please?
Thanks