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

Posts: 27
Location: CT
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
 
When You Register, These Ads Go Away!
Old 10-29-2005, 11:44 AM
Average Talker

Posts: 27
Location: CT
Anybody?
DBookatay is offline
Reply With Quote
View Public Profile
 
Old 10-29-2005, 01:53 PM
chrishirst's Avatar
Super Moderator

Latest Blog Post:
Am I impressed or what?
Posts: 14,899
Location: Blackpool. UK
just use onMouseUp()
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-29-2005, 02:23 PM
Rufo's Avatar
Extreme Talker

Posts: 173
onContextMenu deals with right click specifically, though it may be IE specific.
__________________
mp3blog.us
Rufo is offline
Reply With Quote
View Public Profile Visit Rufo's homepage!
 
Old 03-12-2007, 04:21 PM Re: Right Click = Close Popup
Learning Newbie's Avatar
Moderator

Posts: 5,494
Name: John Alexander
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, 06:24 PM Re: Right Click = Close Popup
tripy's Avatar
Fetchez la vache!

Posts: 2,135
Name: Thierry
Location: In the void
Hey, what if your user does ctrl+u ??
:-D
__________________
Listen to the ducky: "This is awesome!!!"

tripy is offline
Reply With Quote
View Public Profile
 
Old 03-12-2007, 07:16 PM Re: Right Click = Close Popup
Learning Newbie's Avatar
Moderator

Posts: 5,494
Name: John Alexander
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, 07:32 PM Re: Right Click = Close Popup
Average Talker

Posts: 27
Location: CT
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 07:34 PM.
DBookatay is offline
Reply With Quote
View Public Profile
 
Old 03-16-2007, 07:55 PM Re: Right Click = Close Popup
Learning Newbie's Avatar
Moderator

Posts: 5,494
Name: John Alexander
Interesting. How do old threads keep coming up like this?
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 03-16-2007, 09:50 PM Re: Right Click = Close Popup
Average Talker

Posts: 27
Location: CT
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

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

vB 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.15148 seconds with 12 queries