continuous right-clicks brings new alerts, then close window
What would the script be for this...
when you right click anywhere in the webpage, a customized alert pops up, after clicking ok, you right click again, this time a different customized alert pops up, and so on and so on, however after you right click 7 or 8 times, the webpage closes. I remember seeing this while surfing around, and thought that was a cool thing to have, but it was a long time ago, and I dont remember the website to give a script, or even look at it to try to figure it out. can anyone help with this? I would like to put that script to use.
PS...I understand that all someone has to do is click View, Source to see it, but I am not trying to hide my script, just present a cool effect.
Thanks to anyone who can direct me, or get me this script.
I tried that script, ... I put it in the Head section, and but it did not work, so I put it in the body section... Again, it did not work, it didn't do anything. Is there something missing in the script? I copied, and pasted the script as is. maybe, I am supposed to add something, and I just don't know it, or where to put my info in. Can you help me a little further?
It got the "NO RIGHT CLICK" to come up, but how would I add a custom script, for when the user right clicks a second time, and another for the third time, and so on...? I understand I can't close the window, but I would still like to have different alerts for each time the user tries to right click. even if it loops around after a certain number of times. I would like it to have at least 5 different alerts.
Can this be done?
Please bear with me, as I am not very experienced in js yet.
I am not sure if you are just wanting to start something with me or if you are tired of reading requests from people who just want to learn a thing or two for their websites, but whatever your problem is, and whatever the reason...I am not part of it...Please, only respond if you can give a helpful answer, not a "personal opinion" about someones question. I know that I have never given you any reason to reply to my message this way, but if that is all you are going to do, please do not reply further...to my questions anyway...I am only here to learn, not to get into any arguments over an "opinion." If you can help with a script, or an Idea, please do so, but noone, including myself deserves to be talked to in this manner. I hope the admins are reading these, because there is certainly no excuse, or cause for your reaction to my question. I hope the rest of your day, week, and even the rest of your year gets better and better for you, but please don't reply to me like that again.
That is exactly how I took your meaning, AND...it IS an "OPINION", which, I concede that, many people may share, BUT, just because something is in the popular opinion, does not make it a FACT! If you would have read my ENTIRE question, you would see that I am asking for a script which gives varying alerts when right clicking multiple times. I ALSO stated that I am NOT trying to hide my script. I saw it on another website and I thought it was a cool effect. This is MY opinion, and I only wanted to see if someone could help me with that script. Coming on, and trashing someone's question without FULLY reading it is not helping ANYBODY to learn. By the way, YES, I did do a search before asking the question, and NONE of the results asked "the exact same thing", nor answered my original request. I also ran the requests through other search engines such as "google", "yahoo", "msn" "searchalot" and "alta vista". Again, NONE of them gave me what I was looking for.
NOW... do you, or does anyone, know of a script which would answer my ORIGINAL request??? (minus the closing of the browser, of course, since that was already answered.)
Thanks for replying Brandoe85, That is what I was looking for, but is there a way to make it loop itself after the 5th message?
In other words, I want to have it loop back to the first message after it finishes with the fifth one and continue again and again. The way it is now is cool, but on the 6th right click, the menu comes up. Please dont misunderstand me, I am not trying to "hide" my source code, I just want to play with the code to learn. But, this is Great!
Please dont misunderstand me, I am not trying to "hide" my source code, I just want to play with the code to learn.
Maybe a better use of this code would be to redirect a user to another page after failing a password attempt after five tries, or something similar?
Thank you Brando. That is exactly what I was wanting...And see, I even learned something, (how to loop an alert message) which is all I wanted to do in the first place. (not learn to loop, but simply to learn <anything> by doing.) I only needed a little instruction.
rmedek, I understood where hemebond was coming from, it was the 'manner' of how he stated it is what I took offense to. I am here to learn, and your explanation of "breaking the users browser, or interface" taught me something as well. I certainly did not know that, and I appreciate your sharing it with me. You shared it in a "constructive" way, and that is the way I think it should be done. Had hemebond advised me of that fact, instead of saying "This is the crappiest, most annoying, worthless, non-effective piece of crap you can put on a web page." I know for a fact that I would have taken heed to the warning, and would not have "got on a soapbox". I appreciate you filling me in on this...I am new, and still learning things. Hopefully, I can learn much more.
Hemebond, I hope you understand, that I AM open to criticizm, but it must be CONSTRUCTIVE criticizm, not the type that discourages someone from trying to learn. I apologize to you and everyone in the community if I came off in any bad way.
I AM open to criticizm, but it must be CONSTRUCTIVE criticizm, not the type that discourages someone from trying to learn. I apologize to you and everyone in the community if I came off in any bad way.
and we apologise too for any confusion engendered by awkward statements posted albeit in good spirit. nonetheless, it should be noted that some users on this forum (myself included) are fed up of seeing requests for destructive scripts such as no-right-click ones. consquently it's all too easy for that frustration to spill over into what seems a rant.
however, as Hemebond pointed out, he wasn't trying to be personal with you. having posted in a public forum you invited observations from fellow forum users, the sentiments of which may or may not always be to your liking. as such, while opinions expressed here are nothing more than personal comments, they are still not attacks on you personally.
in the future please don't over-react. we don't a flame war starting up because of clumsy coding criticism. it cuts both ways, yanno.