airski
10-17-2003, 11:49 AM
I know how to use javascript to view the source code of a webpage:
<script language=JavaScript>
function ViewSource() {
window.location = "view-source:" + window.location.href }
</script>
<a href=javascript:ViewSource() class="body">Get Code</a>
The only problem is that this opens in a notepad or another editor. How can i do the same thing, but make it open in a new broswer window?
thanks
<script language=JavaScript>
function ViewSource() {
window.location = "view-source:" + window.location.href }
</script>
<a href=javascript:ViewSource() class="body">Get Code</a>
The only problem is that this opens in a notepad or another editor. How can i do the same thing, but make it open in a new broswer window?
thanks