Disable A Right Click For Just One Page On A Site?
Feb 6, 2010How do you disable a right click for just one page on a site?
View 13 RepliesHow do you disable a right click for just one page on a site?
View 13 RepliesI'll make this short and simple.
1. Disable right-click in my webpage,
2. Disable "View Page Source" option.
I've seen point no.1 implied in many websites, but haven't seen point no.2 anywhere.
I recently thought that my PHP script [URL] was bugged, but I found out that it wasn't; it worked perfectly fine as it was. Now, I found out that the Google Ads I placed from my site caused the "bug"; everytime the google ad was loaded the page I was viewing would be visited by Google... and hence added 1 extra number to my `hits`. So does anyone who knows how to control Google Ads know how to disable Google from viewing your site after page is loaded?
View 1 Replies View RelatedShould I disable the right click option or not? I have a gallery site, I don't want people to be able to copy the images with the default right click over an image. From a professional looking site point of view I suppose I would be messing with the functionality a bit too much, OR is it OK in this instance to disable the click. I know how to write the code to disable the click, but what I was thinking was maybe it would be better to leave the right click but change the menu options? I'm not sure how to change the menu options ere is a link to the site. [URL]
View 12 Replies View RelatedIs there a chance to disable these two things from my site?
(View Source) and (Ctrl + C)
if there was a script to disable only the horizontal scroll bar in a browser window on a site with frames?
View 7 Replies View Relatedhow to do click to copy to the clipboard and open site. examples of this kind of script can be viewed on this page [URL].. on the yellow boxes with the discount text.
View 10 Replies View RelatedWhat's the best way to display an image, disabling the user's ability to right-click on it?
I believe you have to use <body oncontextmenu="return false">. Would the
following work?
var x = "<head></head><body oncontextmenu="return false"><img src='temp.jpg' border=0></body>"
top.document.open()
top.document.write(x)
top.document.close()
Since this is a frameless site, I don't think this would work, at least
would never get to the close()...
What is the command to prevent "right clicking".
View 12 Replies View RelatedThis has probably been covered before but I can't seem to find it. I
want to disable the user from using the right mouse button that brings
up a windown menu of options. How's it done?????
i am using the following code to open a popup window in this code can i disable right click on the popup
string url = "example";
Response.Write("<script language='javascript'>window.open('" + url + "', '_blank', 'height=500,width=350,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,titlebar=no,align=center' );</script>");
I've already tried searching google, but the Javascript functions I find there don't work in Firefox 4, but just fine in IE8.
What's happening is that the click event isn't being recognized in Firefox. Is there a new catch for it?
The latest attempt:
<script LANGUAGE="Javascript1.1">
<!-- Original: Martin Webb (martin@irt.org) -->
<!-- This script and many more are available free online at -->
<!-- The Javascript Source!! http:javascript.internet.com -->
[Code].....
how can I make this script, have the right click menu be disabled for all other browsers - Firefox, Opera, etc?
Code JavaScript:
function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("Sorry, these images are copyright protected.");
[Code]...
There is a page which includes an iframe. I know how to disable right click in that page, but users can use right click in the iframe. Is it possible to disable right click in the iframe as well, without editing the page displayed in the iframe?
View 24 Replies View Relatedi want to disable right click on this script its very urgent
[Code]...
in my web application i've disabled all F keys with common script like this below, i use F keys for open some different popups, but only F12 key have problem, if i press F12 first time it run well and open my popup, but if i close it and i immediatly press F12 again it doesn't open my popup but it open developer tool window.It run well only if before i click with mouse onto the page, but i do not have to use the mouse.
View 5 Replies View Relatedi want to make a iframe page that loading a page from other site. I have try "jQuery iFrame Sizing" to set auto height in iframe... but it is failed.
This is my code :
-------------
on Head
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/iframe.js"></script>
on Body
[Code]....
[URL] I just need jquery to slide when you click the next and previous buttons in the gallery under the logo on my site.
View 3 Replies View Relatedi have a page with a table, and when the user doubleclicks a row in
it, a window is opened. The problem is, if he doubleclicked a text in
the row, it's becoming selected.
what i want is to disable the selection upon doubleclicking, but no
the selection at all (so that the user can still just use the mouse to
select some text in the table).
is there a javascript command that can disable the selection currently
highlighted?
How do i disable a link so users can't click on it?
View 1 Replies View Relatedis it possible to set the radio button disabled on clicking the submit button
View 3 Replies View RelatedI want to disable 'centre click' of mouse for my website..How could i do this??
View 5 Replies View RelatedCan you help me please? I need a function that can disable the submit button after the user clicked on it once so he wont be able to click it twice or more...
View 2 Replies View RelatedI noticed that in the GoDaddy Account UI that whenever you try and control click it simply opens the link in the same window (only seems to apply to the main navigation menu). I am trying to use a script like that on my site but was not able to locate it in their source code.
View 2 Replies View RelatedOur company own a lot of domains and want to put a short page of copy on each address along with keywords before redirecting the user to our main site. I have been able to get the page to load the main site after the desired time using this code in the head...
<META HTTP-EQUIV="refresh" CONTENT="40;URL=http://webaddress.com/">
That works perfectly, I am now trying to display a countdown timer from 40 seconds down to 0, and on 0 redirect the user. Saying something like "You will be redirected in XX seconds". Is there anyway of doing this? I've been searching google for the answers with no luck and can only seem to find timers that countdown to a set date.
I've got my accordion working.The html and jq are as follows
<div class="nav">
<h3><div></div>
<h3><div></div>
<h3><div></div>etc..
</div>
$(document).ready(function() {
This hides all divs except the first one (check the site) on load, then whenever I click a h3, it performs as an accordion, sliding the hidden div down and other visible divs back upI want to add another functionality. I want it to be like, if you click on a h3, and the next div is already open, it will hide that div. else, it performs this function. This would be a basic if/else then wouldn't it? I'm new to jq but I've done mIRC scripting in the past and I don't know how the selectors work yet