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:
You will also be interested in ,
- Load webpage dynamically from query string using simple javascript and iframe
- New Year and Christmas count down script using javascript
- Get IP address using javascript And SSI
- Find screen resolution and redirect the user using javascript
- Change webpage background color using javascript
- Suppress javascript errors on your webpage easily
- Give a welcome alert message to your visitors using javascript
- Encode and Decode Strings using javascript.
- Auto refresh page with timer using javascript
- Disable browser back button using javascript
