If the link target isn't a proper anchor, the code generates a JS on-click handler, i.e.
tag.put("onclick", "window.location.href='" + url + "';");
which generates code such as
The problem is that when this is used with a button /in a form/, while this works with IE & FF2, it appears that FF3 needs a 'return false;' at the end of the JS before it works, otherwise it just treats the button as a 'submit' action.
So, is there any down-side to changing the above line in
tag.put("onclick", "window.location.href='" + url + "'; return false;"); ?