Looking at the tips/tricks page, the suggestion to use the javascript: to execute script on click works great unless you have a onbeforeunload function registered. Only tested on IE6 on WinXP sp2.
The event(onbeforeunload) is fired I believe since the script is run using a window.open. The window.open must open the window, but then since the address is javascript, closes the new window.
Replacing:
if (link != null)
{
_cmClicked = false;
window.open (link, target);
}
With:
if (link != null)
{
_cmClicked = false;
if (link.substr(0, 11).toLowerCase() == "javascript:"){
eval(link.substr(11));
} else {
window.open (link, target);
}
}
In function cmItemMouseUp fixes the issue. I will include a test case.
Thanks
Mike
Test Case