Everything For Webmasters
 
HomeFAQSearchMemberlistUsergroupsRegisterLog in
FREE FACEBOOK LIKES
socialmedianetworkexchnage
Muscle Warfare - Free Trial
Latest topics
» Why Directory is so Important??
Mon Mar 04, 2013 10:22 pm by madelinekim

» What is SEO ?
Mon Mar 04, 2013 10:18 pm by madelinekim

» is meta tags usefull? for you?
Mon Mar 04, 2013 10:14 pm by madelinekim

» some usefull seo tips
Mon Mar 04, 2013 10:09 pm by madelinekim

» hello to everyone out there!
Wed Nov 28, 2012 6:21 pm by surferangel

» Hello everyone !
Wed Nov 28, 2012 6:14 pm by surferangel

» EXTRA MONEY ONLINE
Wed Nov 28, 2012 6:01 pm by surferangel

» General Discussion Forum
Fri Nov 23, 2012 3:40 pm by motorcookie

» Selling one of my sites....
Fri Nov 23, 2012 3:17 pm by motorcookie

Top posting users this month
Social bookmarking
Social bookmarking digg  Social bookmarking delicious  Social bookmarking reddit  Social bookmarking stumbleupon  Social bookmarking slashdot  Social bookmarking yahoo  Social bookmarking google  Social bookmarking blogmarks  Social bookmarking live      

Bookmark and share the address of Webmaster Forums on your social bookmarking website

Bookmark and share the address of Webmaster Forums on your social bookmarking website
Advertisement

Share | 
 

 How to disable right click in html

Go down 
AuthorMessage
cara.mic
Guest



PostSubject: How to disable right click in html   Thu May 06, 2010 2:02 pm

How to disable right click in HTML and easy way to do
Back to top Go down
tripy
Guest



PostSubject: Re: How to disable right click in html   Thu May 06, 2010 2:03 pm

There is no way to have it on every browser in a way than an user cannot access it.
You'd better forget about it.

You want to avoid someone seeing your site source code, then don't put it on the web.
Or generate it as a big jpg image. (yurk...)
Back to top Go down
Knight13
Guest



PostSubject: Re: How to disable right click in html   Thu May 06, 2010 2:04 pm

All that does is piss people off, i hate it when i go to a website and i can not right click to use the back button or the reload button, i agree with tripy just forget about it you will be better off.
Back to top Go down
beta
Guest



PostSubject: Re: How to disable right click in html   Thu May 06, 2010 2:05 pm

What is it that you want to do? I mean your goal might be solved in another way if you tell us what it is you want to accomplish by removing right clicking.
Back to top Go down
Marik
Guest



PostSubject: Re: How to disable right click in html   Thu May 06, 2010 2:06 pm

Well putting this on your page will work:



<SCRIPT LANGUAGE="JavaScript">
var message="Function Disabled!";
///////////////////////////////////
function clickIE() {if (document.all) {alert(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {alert(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</script>
Back to top Go down
Sponsored content




PostSubject: Re: How to disable right click in html   

Back to top Go down
 
How to disable right click in html
Back to top 
Page 1 of 1
 Similar topics
-
» Query - web driver element click is not working
» HTML Alone
» How to disable Remote Control page popping up?
» Need a custom html page?
» How to store a HTML comment in selenium

Permissions in this forum:You cannot reply to topics in this forum
Webmaster Forums :: Coding Forum :: HTML Forum-
Jump to: