- 0
Javascript New Window Help
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
Microsoft explains how to download and install the new "10 times faster" TypeScript
By hellowalkman,
- microsoft
- typescript
- (and 7 more)
- 0 replies
- 0 views
-
JavaScript devs beware: this very popular NPM package has been compromised by attackers
By David Uzondu,
- javascript
- axios
- (and 2 more)
- 0 replies
- 0 views
-
AI's impact on programming language popularity revealed
By zikalify,
- ieee
- programming languages
- (and 7 more)
- 3 replies
- 0 views
-
Over 300 npm packages compromised by self-replicating worm
By David Uzondu,
- javascript
- npm
- (and 3 more)
- 8 replies
- 0 views
-
Everyone seems powerless against Oracle's ownership of the JavaScript trademark 1 2
By Usama Jawad96,
- oracle
- javascript
- (and 5 more)
- 29 replies
- 0 views
-
Question
apa1exakis
I have been asked to help with a site because their old developer went out of business. THey built a custom asp.net website that sells house plans and they insist on disabling right click with a body tag using the "oncontextmenu" method. So fine... but they allow larger previewing of the homes using a javascript window opener to show the enlarged image. Problem is the new window allows right click. I have gone through all the code and pinpointed the code below which enables the window opener to preview the pictures:
My question, is there any way to disable right click by modifiying this opening code so the image in this new window can't be right clicked. I see no other way and javascript isnt my strong point. I wish the client would just not do this but they insist.
Thank you very much
Link to comment
https://www.neowin.net/forum/topic/1058520-javascript-new-window-help/Share on other sites
2 answers to this question
Recommended Posts