By Stephen Chapman Web novices often believe that by blocking their visitors use of the right mouse button that they can prevent the theft of their web page content. Nothing could be further from the truth as there are so many ways to bypass the “no right click script” that the only effects that such […]
Archive for the 'JavaScript' Category
Text-box autocomplete
The code is initial designed by Mircho Mirev [ momche.net ]. I’ve enhanced this script so instead of array of static data the text-box auto-complete uses database back end. Default.asp <%@LANGUAGE=”VBSCRIPT” CODEPAGE=”65001″%> <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”> <html> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″> <title>Intellisense Example</title> <SCRIPT language=”JavaScript” src=”moautocomplete.js”></SCRIPT> </head> <body style=”font-family: Verdana, […]
Disable Back Button
My .aspx Page <%@ Page Language=”VB” AutoEventWireup=”false” CodeFile=”Page1.aspx.vb” Inherits=”_Default” %> <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml” > <head runat=”server”> <title>Page 1</title> <script type = “text/javascript” > function preventBack(){window.history.forward();} setTimeout(“preventBack()”, 10); window.onunload=function(){null}; </script> </head> <body> <form id=”form1″ runat=”server”> <h1>My Page</h1> <div> Take me to Google<br /> <asp:Button ID=”Button1″ runat=”server” Text=”Google” /> </div> […]