aqua
08-02-2003, 06:47 AM
the code i have is
<html>
<head>
<script>
function next()
{
location.href="next.html";
}
</head>
<body>
<a href="" onClick="next();return false" >Click me</a>
</body>
</html>
this code workd fine. now if i right click on the link i see the pop up menu. how do i trap this event and how do i know which item the mouse is referring to..
like now if i right click on the link and say open it opens a blank page in the new window. that is because i have used the onClick event . so to achieve this i need to trap the right click event and know what to do even each of the menu item is clicked in the pop up menu..
anybody with any ideas how to do it??:confused:
<html>
<head>
<script>
function next()
{
location.href="next.html";
}
</head>
<body>
<a href="" onClick="next();return false" >Click me</a>
</body>
</html>
this code workd fine. now if i right click on the link i see the pop up menu. how do i trap this event and how do i know which item the mouse is referring to..
like now if i right click on the link and say open it opens a blank page in the new window. that is because i have used the onClick event . so to achieve this i need to trap the right click event and know what to do even each of the menu item is clicked in the pop up menu..
anybody with any ideas how to do it??:confused: