Leon wrote:
Is it possible?
Say
We have a list of suppliers link like
A supplier
B supplier
when right click on a supplier, a context menu(that has
"details","view products", etc) appears and click on "view products
for this supplier" this click will redirect users to products page
showing all products from the supplier.
So href should look some like this
<a href="RightClicked('10')">A supplier</a>
PS. As a hint to how dreadful Microsoft's on-line documentation is,
here is a snippet of their effort to provide a demo of DHTML
menus:
<SCRIPT LANGUAGE="JavaScript"><!--
/* ----------------------------------------------------------------
sniffing code to detect for IE4 on either Windows NT or 95
---------------------------------------------------------------- */
var sAgent = navigator.userAgent
var bIs95NT
= sAgent.indexOf("Windows 95") > -1
|| sAgent.indexOf("Windows NT") > -1
|| sAgent.indexOf("Win32") > -1
|| sAgent.indexOf("Windows 98") > -1
var bIsIE4
= sAgent.indexOf("IE 4") > -1
&& sAgent.indexOf("b1") <= -1
&& sAgent.indexOf("p1") <= -1
var bIsIE432 = bIs95NT && bIsIE4
/* ----------------------------------------------------------------
variable declarations for doMenu
sOpenMenuID points to any open pop-up menus, is blank otherwise
---------------------------------------------------------------- */
<URL:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndhtml/html/popupmenu.asp>
You may note that their own demo code excludes 95% of current web
surfers! That is, anyone not using Win32/95/NT with IE 4.
Good for a giggle but that's about it.
--
Rob