Re: Right Click Hyperlink
| From: | Joona Kulmala | Date: | Thu, 31 Jul 2003 12:47:33 +0000 |
| Subject: | Re: Right Click Hyperlink | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-157705@lists.php.net to get a copy of this message | ||
Does anyone know if there is anything in PHP or any other language that would
allow a specific action to occur if a visitor right-clicked on a link. For example, they could left click on it an go to a specified page, and they could also right-click it to go to a different page. Anyone know of anything that can do this? It isn't possible with PHP, becaus PHP is Server Side Language, so it isn'tcapable to handle browser events. But this is possible with javascript. It should go like this: <a href="" onClick="javascript: leftClickAction();"
onRightClick = "javascript: RightClickAction();">your link</a>If you wan't more info, aske Google: - http://www.google.com/search?num=100&hl=en&lr=&ie=UTF-8&oe=utf-8&q=javascript+onRightClick&btnG=Google+Search Greetings, Joona -- Joona Kulmala <joona@fiveam.org>