I 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.
I would like to disable the ability of the user hold control and click and get the dropdown menu. I am ultimately discouraging users from easily getting a copy of the image. I was able to do this and disable dragging on all browsers I have tested except Safari (Mac). Code:
Im trying to prevent the user from clicking any other links on my page when the user have selected/clicked a href once.
Sometimes it takes a while before the next page loads so some user will try clicking other links or the same link.
I can prevent this when i use buttons by calling onclick and in a javascript getElementsByTagName("input") and then check the type to be type of "button" or "submit" which i then disable. It works.
This also works for href html tags by calling onclick and in a javascript remove all href, BUT it also stops everything, even the request that is about to happen.
If i use disable getElementsByTagName("a") on href like with buttons it does not get unclickable just get a grey color but you can click on it.
Any workaround to this? This is a seriuos web app so I want the solution where i disable ALL links on my page so it is not possible to click on any after the first time.
All the links is NOT in a form only links using <a href="gosomeplace"> click this link</a> .
I am using a lightbox script (which dims the page when clicked and shows a pop up image).This script is called upon by the user clicking on an imageButton.I am also trying to close, hide or disable this once it has been clicked on (so it only works once). My code is below:
all try to explain my problem: i have this website:[URL].. i'm using Jquery Cycle to do a slideshow. I would like to know how to put a link on each colored square.
I know i have to find in "jquery.cycle.all.js" but i'm a bit lost...
Should 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]
I'm normally over on the PHP board but this one is definitely a javascript issue. The thread title doesn't quite cover my issue, so I'll try to explain a little further.I built a website for a client who tells me that when he hovers over a word on his page it pops up a link to a competing site. I assured him that I didn't put the links in there, that it's a script or program running on his computer creating those links as he views the page.So my questions:
1. Is there a name for this evil? 'Popup spam ads' or something? 2. Anyone know of a way to build in javascript or any other method to stop this from happening to his site?
I have a small doubt in jsp coding..I want to disable certain links on user login.These links come under a menu list.Clarifying more on this..I have created a web application which has got a login page..After login it redirects me to my home page..now when an administrator logs in he/she should be able to view all links on the menu list whereas when an user logs in he/she should only view a certain number of links based on his/her privileges..how can i write this code.
This 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'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 -->
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?
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.
What is wrong with this code it is supposed to start with a white rectangle and then on mouseover display the menu. The animation is working but when the menu is displayed, you cant use any of the inputs or click any of the links.
Here is the code: Code HTML4Strict: <!DOCTYPE html> <html> <head> <script type='text/javascript' src='jquery.js'></script> <style type='text/css'> div.fadehover { position: relative; } .....
if you click the link, it expands some other html stuff, so this is a javascript link. there are up to 100 of these links on the page and i am trying to expand all with a one click bookmarklet.
i tried already to fetch the links with a custom js function named "getElementsByAttribute" but that didn't went out well and i didn't get any results, no matter what parameters i used with the function.
so i'm searching for another method for fetching all the methioned links or some correct solution using the named function. and i think i will might have problems with clicking/activating them all. ps. that is the first time i'm actively using javascript.
i 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?