If you wanna see your webpage source using javascript here is a simple example just copy and paste the script below to your webpage and press the View Source button.
<form action="#" onsubmit="return getsource();">
<input type="submit" value="View Source!" />
</form>
<script type="text/javascript" >
function getsource()
{
var thesource= "view-source:" + window.location;
window.open(thesource, 'source_code', 'width=400, height=400, resizable=1, scrollbars=1');
return false;
}</script>
This script will work on Mozilla and Chrome. IE hate this script![]()
Incoming search terms:
- browser closing event & csharp (1)
- how we can use java scrept in html scrept (1)
- jquery ischar event (1)
- on page text search javascript (1)
- view webpage source (1)
You will also be interested in ,
- Javascript Countdown script for Christmas or NewYear Part 2
- Check whether the browser is Internet Explorer or not using javascript
- Finding The Size Of Images Using Javascript
- Context Right Click Menu Using Javascript
- Change input value from uppercase to lowercase using javascript
- Jquery Basics, How to use jquery?
- Visitor counter using cookies and javascript
- Enter only numbers inside a input field of a form using javascript
- Scrolling title bar in browser using javascript
- Write data to a page using javascript

