<form name=frmSource> <textarea name=txtSource>test</textarea> <input type=button onClick='document.frmSource.txtSource.value = "view-source:" + window.location.href'> </form>
<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>
Jump To Top of Thread