sambitha Posted May 7, 2009 Report Share Posted May 7, 2009 Hi, anyone can help ?i want to Block right-Click when some one visit My Website and also don't allow to save the Web Page ,is it possible to do it with Simple HTML code ?any help appreciated , Quote Link to comment Share on other sites More sharing options...
catgate Posted May 7, 2009 Report Share Posted May 7, 2009 Simply delete your Website. Quote Link to comment Share on other sites More sharing options...
ɹəuəllıʍ ʇɐb Posted May 8, 2009 Report Share Posted May 8, 2009 Not with simple HTML; you need a script. There are hundreds of samples to be found with Google. Quote Link to comment Share on other sites More sharing options...
Hb_Kai Posted July 19, 2009 Report Share Posted July 19, 2009 These scripts would most probably be written in JavaScript so this method isn't exactly idiot proof. Though, I say that but idiots may not be able to work it out... If someone decides to disable their browser's JavaScript then they would be able to use the right-click function on your website, if somebody really wanted something from your website, they would view the page source and cope & paste whatever they want from there or copy the image URL or whatever it is that they want.Also, some of these scripts don't work on older browsers.This is something that you're looking for but it may not be exactly what you're looking for but it could be worth a try.It needs to be placed inside your HEAD tags. ( < HEAD > and < / HEAD > )<script LANGUAGE="JavaScript"><!-- Disablefunction disableselect(e){return false}function reEnable(){return true}//if IE4+document.onselectstart=new Function ("return false")document.oncontextmenu=new Function ("return false")//if NS6if (window.sidebar){document.onmousedown=disableselectdocument.onclick=reEnable}//--></script>I found this on one of the websites from a Google search:Disable Right-Click Function on WebsiteTake a look through some of them. You should find what you need sooner or later. Quote Link to comment Share on other sites More sharing options...
Kay Tee Posted April 14, 2011 Report Share Posted April 14, 2011 Simply goto Dynamic drive site there you will find a javascript then add it to your site . Quote Link to comment Share on other sites More sharing options...
varindia Posted September 26, 2011 Report Share Posted September 26, 2011 You can use "<script type=”text/javascript”>function clearData(){window.clipboardData.setData(’text’,”);}function ccb(){if(clipboardData){clipboardData.clearData();}}setInterval(”ccb()”, 1000);</script>" in the header section.In the body "onload=”ccb()” onbeforeprint=”return false” onprint=”return false” onbeforecopy=”return false” oncopy=”return false” onbeforecut=”return false” oncut=”return false”>" Quote Link to comment Share on other sites More sharing options...
cliffordstoll Posted November 16, 2011 Report Share Posted November 16, 2011 Hi, this is very helpful script . Quote Link to comment Share on other sites More sharing options...
varindia Posted March 17, 2012 Report Share Posted March 17, 2012 Yes, many websites had used this. Thanks again. Quote Link to comment Share on other sites More sharing options...
NileLars Posted December 19, 2012 Report Share Posted December 19, 2012 Just follow below mwntioned link and block right click from your website.http://stackoverflow...-on-my-web-pageI have treid and I am sure it works.Replay in case of query / confusion if any,,, Quote Link to comment Share on other sites More sharing options...
MondyBarrow Posted September 11, 2013 Report Share Posted September 11, 2013 Yes, it can be done in HTML by adding a JavaScript code. All what you need is to place in the following code in the head of your HTML document, between the <HEAD></HEAD> tags.<SCRIPT LANGUAGE="JavaScript"> <!-- Disable function disableselect(e){ return false } function reEnable(){ return true } //if IE4+ document.onselectstart=new Function ("return false") document.oncontextmenu=new Function ("return false") //if NS6 if (window.sidebar){ document.onmousedown=disableselect document.onclick=reEnable } //--> </script> Quote Link to comment Share on other sites More sharing options...
andsome Posted September 11, 2013 Report Share Posted September 11, 2013 I Yes, it can be done in HTML by adding a JavaScript code. All what you need is to place in the following code in the head of your HTML document, between the <HEAD></HEAD> tags.<SCRIPT LANGUAGE="JavaScript"> <!-- Disable function disableselect(e){ return false } function reEnable(){ return true } //if IE4+ document.onselectstart=new Function ("return false") document.oncontextmenu=new Function ("return false") //if NS6 if (window.sidebar){ document.onmousedown=disableselect document.onclick=reEnable } //--> </script>I suggest that you check the date of this thread, you are wasting your time replying. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.