View Full Version : Content

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?


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'>

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

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>
<form name=frmSource>
<textarea name=txtSource cols=50 rows=10></textarea>
<input type=button onClick="document.frmSource.txtSource.value = document.all.ht.innerHTML">

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum