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't
capable 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 <[EMAIL PROTECTED]>


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to