Applellial Posted June 10, 2011 Share Posted June 10, 2011 I'm designing a browser game. When a user right clicks an object in my game I would like to be able to have a menu come up. Is it possible to override the right click event only for the canvas and still allow normal right click functions outside of the canvas? Thanks Link to comment https://forums.phpfreaks.com/topic/238948-overriding-right-mouse-click/ Share on other sites More sharing options...
trq Posted June 10, 2011 Share Posted June 10, 2011 Not with HTML. Link to comment https://forums.phpfreaks.com/topic/238948-overriding-right-mouse-click/#findComment-1227837 Share on other sites More sharing options...
ZulfadlyAshBurn Posted July 16, 2011 Share Posted July 16, 2011 just asking, if your game is coded using html or flash? if its flash, its possible. If html somehow its possible. the game should be a iframe. the iframe would be in the page you want the user to play the game. in the game page, add the right click script to override. there you have. could be a tedious job Link to comment https://forums.phpfreaks.com/topic/238948-overriding-right-mouse-click/#findComment-1243521 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.