Answered by:
Get right click on IE

Question
-
Can someone please point me in right direction to intercept right click into Internet Explorer ?
My goal is to paste a password into a password HTML INPUT element using a context menu after a right click.
To do so, I think I must have access to IE and DOM in the page currently loaded.
Any help ?
Thanks !
- Moved by Kristin Xie Thursday, September 10, 2015 8:43 AM
Wednesday, September 9, 2015 9:14 AM
Answers
-
http://forums.asp.net/130.aspx/1?HTML+CSS+and+JavaScript
You should post to the ASP.NET forum, and you will need to use JavaScript and/or Jquery too.
- Proposed as answer by Kristin Xie Thursday, September 10, 2015 6:08 AM
- Marked as answer by Just Karl Wednesday, September 23, 2015 10:53 PM
Wednesday, September 9, 2015 2:09 PM
All replies
-
Is this just in ie of are you using a webbrowser control?
You can either handle or insert a script which handles oncontextmenu.
This would be javascript though rather than c#
<div oncontextmenu="javascript:alert('Hello!');return false;"> blaa blaa blaa </div>
Wednesday, September 9, 2015 9:28 AM -
Only IE.
Actually, I am thinking about an add-on ... because I have to intercept users working in a standard IE installation (no webbrowser control).
I heard about BHO too but I never used them.
Thanks.
Wednesday, September 9, 2015 9:35 AM -
Well this isn't a c# question then.
Wrong forum.
.
I would consider a browser extension, myself but please ask the question in some more appropriate forum.
Wednesday, September 9, 2015 10:23 AM -
http://forums.asp.net/130.aspx/1?HTML+CSS+and+JavaScript
You should post to the ASP.NET forum, and you will need to use JavaScript and/or Jquery too.
- Proposed as answer by Kristin Xie Thursday, September 10, 2015 6:08 AM
- Marked as answer by Just Karl Wednesday, September 23, 2015 10:53 PM
Wednesday, September 9, 2015 2:09 PM -
If it really is purely html then it quite possibly isn't asp.net.
Wednesday, September 9, 2015 2:14 PM -
If it really is purely html then it quite possibly isn't asp.net.
Wednesday, September 9, 2015 4:18 PM