DelphiFAQ Home Search:

How do I trap the right-click -> print event?

 

comments3 comments. Current rating: 4 stars (1 votes). Leave comments and/ or rate it.

You cannot trap specifically the selection of the print command in the menu but you can intercept and disable the popup menu with this code:

<script>
  // tested in IE 5 and 6

  document.oncontextmenu = function(){return false}
</script>

Content-type: text/html

Comments:

2015-02-01, 04:21:50
anonymous  
Arceilts like this are an example of quick, helpful answers.
2018-08-17, 02:38:02
stevemarlin from United States  
rating
This Article will surely solve the query of a student who is studying Computer Science or Software Engineering because these small but difficult always trouble students and they are finding these type of support to solve that issues, You are doing a great job keep it up and also I'm supporting students in their related issues if you want to take it simply visit https://www.7dollaressay.com/ for best and cheap assistance.
2018-09-10, 09:51:35
emmaferris from College Park, United States  
A vital reference by one of Britain's great editor in principal then tutors. As vital today as it was once first printed extra than 40 ages ago, This first softback edition https://www.assignme..hub.co.uk/ just a leader for presses and editors, but for someone seeking to progress their script of the 'world's maximum abused and used verbal

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: