Category Archives: JavaScrpit

javascript to get value of File in Html with in the Page

<html> <head> <title> New Document </title> <meta name=”Generator” content=”EditPlus”> <meta name=”Author” content=””> <meta name=”Keywords” content=””> <meta name=”Description” content=””> </head> <script > function Check() { var name=document.getElementById(‘INPUT’).value; alert(name); document.getElementById(‘OUTPUT’).innerHTML=name; } </script> <body> <input type=”file”  id=’INPUT’  value=””  > <input type=”button”  value=”Check”  onclick=”Check()” … Continue reading

Image | Posted on by | Leave a comment

Disable Back Button in Browser With JavaScript

Disable Back Button in Browser With JavaScript <HTML> <HEAD> <TITLE>Disable Back Button in Browser</TITLE> <STYLE>body,input{font-family:Calibri,Arial}</STYLE> <script type=”text/javascript”>window.history.forward();function noBack(){window.history.forward();}</script> </HEAD> <BODY onload=”noBack();” onpageshow=”if (event.persisted) noBack();” onunload=””> <H2>BackButtonRestrict</H2> <p>This page contains the code to avoid Back button. </p> <p>Click here to Goto … Continue reading

Posted in JavaScrpit | Tagged | Leave a comment

Disable RightClick Mouse and Disable Print Screen Key…Using JavaScript

 How To Block Print Screen As well As Mouse functionalities With Java Script <html> <head>  <script language=”Javascript1.2″> am = “This function is disabled!”; bV  = parseInt(navigator.appVersion) bNS = navigator.appName==”Netscape” bIE = navigator.appName==”Microsoft Internet Explorer” function check(e) {    if (bNS … Continue reading

Posted in JavaScrpit | Tagged | 3 Comments

Restrict Copy Paste in Webpages with java Script

Easy To Implement Try  This <html> <head> <script type=”text/javascript”> function start(){ block = setInterval(“window.clipboardData.setData(‘text’,”)”,20); } function stop(){ clearInterval(block); } </script> </head> <body onload=”start();”> YOU TRY TO COPY AND PASTE THIS SCREEN, AND ALL THE ACTIVE SCREENS <input type=”button” onclick=”stop();” value=”stop … Continue reading

Posted in JavaScrpit | Tagged | Leave a comment