Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Right Click = Close Popup
Old 10-28-2005, 11:01 AM Right Click = Close Popup
Average Talker

Posts: 27
Location: CT
Trades: 0
Is there a script that will close a popup window if the user trys to right click the page? I have a popup on my site that I dont want users to be able to View Source on, and I personally think the "Alert- Right Click has been disabled" scripts are very annoying.

I know <body onBlur="self.close()" onClick="self.close()"> for left click, but is there something for right click?

Any ideas?
DBookatay is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-29-2005, 10:44 AM
Average Talker

Posts: 27
Location: CT
Trades: 0
Anybody?
DBookatay is offline
Reply With Quote
View Public Profile
 
Old 10-29-2005, 12:53 PM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
just use onMouseUp()
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-29-2005, 01:23 PM
Rufo's Avatar
Extreme Talker

Posts: 173
Trades: 0
onContextMenu deals with right click specifically, though it may be IE specific.
__________________

Please login or register to view this content. Registration is FREE
Rufo is offline
Reply With Quote
View Public Profile Visit Rufo's homepage!
 
Old 03-12-2007, 03:21 PM Re: Right Click = Close Popup
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
Or instead of cheating your hosting company AND your users, just don't have the popup in the first place.
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 03-12-2007, 05:24 PM Re: Right Click = Close Popup
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Hey, what if your user does ctrl+u ??
:-D
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 03-12-2007, 06:16 PM Re: Right Click = Close Popup
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
Or disables java? Or has a popup blocker? Or uses a special browser? Or etc.
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 03-16-2007, 06:32 PM Re: Right Click = Close Popup
Average Talker

Posts: 27
Location: CT
Trades: 0
Wow, I started this thread in 2005...
Its not cheating to have a popup, sometimes popups serve a good function.

Last edited by DBookatay; 03-16-2007 at 06:34 PM..
DBookatay is offline
Reply With Quote
View Public Profile
 
Old 03-16-2007, 06:55 PM Re: Right Click = Close Popup
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
Interesting. How do old threads keep coming up like this?
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 03-16-2007, 08:50 PM Re: Right Click = Close Popup
Average Talker

Posts: 27
Location: CT
Trades: 0
Quote:
Originally Posted by Learning Newbie View Post
Or instead of cheating your hosting company AND your users, just don't have the popup in the first place.
Since someone did bring the thread back, explain how it's "cheating the hosting companies?"

If its a popup that loads when the page loads its annoying, not cheating. But if its something like I have on my site for definitions to certain words or sections, where the user clicks a link and has a popup page appear, it makes it easier for the user, instead of redirecting them to another page, then making them go back to the first page.
DBookatay is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Right Click = Close Popup
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.86234 seconds with 12 queries