might also add that if your doing this to stop theft of content or pictures it does not work against spiders and bots. only against people using a web browser
========================= BJ Freeman http://bjfreeman.elance.com Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=52> Specialtymarket.com <http://www.specialtymarket.com/> Systems Integrator-- Glad to Assist Chat Y! messenger: bjfr33man Linkedin <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> Jacques Le Roux sent the following on 6/2/2010 10:30 AM: > Thanks Ankit, Sachin, > > I put your tips in the FAQ > > Jacques > > From: "Ankit Jain" <ankit.j...@hotwaxmedia.com> >> Hi, >> For disabling right click you can use the following code : >> >> <script type="text/javascript"> >> document.oncontextmenu=new Function("return false") >> </script> >> >> -- >> >> Thanks& Regards: >> Ankit Jain >> Enterprise Software Developer >> Hotwax Media Pvt. Ltd. >> www.hotwaxmedia.com >> >> >> >> On Wednesday 02 June 2010 05:36 PM, sachin kanojiya wrote: >>> Hello, >>> >>> You can restrict your user to go back using this javascript. >>> >>> <script type="text/javascript"> >>> window.history.forward(0); >>> </script> >>> >>> Regards >>> Sachin kanojiya >>> >>> >> >> > >