...

View Full Version : Content



Hawk
07-25-2002, 07:07 PM
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>

Hawk
07-25-2002, 10:02 PM
thanks but that did not show the content in the view source. It only showed the URL.

Hawk
07-25-2002, 10:22 PM
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>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum