View Full Version : Content
This will show the source code of the current page.
<INPUT TYPE="BUTTON" VALUE="View Source" onClick='window.location = "view-source:" + window.location.href'>
How can I put that between a <textarea> tag?
Thanks
allida77
07-25-2002, 09:07 PM
<form name=frmSource>
<textarea name=txtSource>test</textarea>
<input type=button onClick='document.frmSource.txtSource.value = "view-source:" + window.location.href'>
</form>
thanks but that did not show the content in the view source. It only showed the URL.
In case if someone needs this. This is still not 100% what I am looking for.
<html id=ht>
<head>
</head>
<body>
<form name=frmSource>
<textarea name=txtSource cols=50 rows=10></textarea>
<input type=button onClick="document.frmSource.txtSource.value = document.all.ht.innerHTML">
</form>
</body>
</html>
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.