RE: [Httpunit-develop] RE: Javascript action as input in form
Brought to you by:
russgold
From: Russell G. <rus...@ht...> - 2003-02-28 14:41:53
|
At 03:53 PM 2/27/2003 -0800, Jacqui Guerrero wrote: >Here's the code snippet: > ><INPUT TYPE=hidden NAME="mv_click_map" VALUE="Save_This_Cart"><INPUT >TYPE=hidden NAME="mv_click_Save_This_Cart" VALUE=""><A HREF="javascript:void >0" onMouseOver="window.status=\'Save This Cart\'" onClick=" >mv_click_map_unique(document.basket, \'mv_click_Save_This_Cart\', \'Save >This Cart\') && basket.submit(); return(false);" ALT="Save This >Cart"><IMG >ALT="Save This Cart" SRC="/flor/images/grayscale/savecart.gif" border=0 >align=top></a> '); >// --> ></script> ><noscript><INPUT TYPE="submit" NAME="mv_click" VALUE="Save This >Cart"></noscript> What I would expect to happen is that if you call Button.click(), the "onClick" event will fire. Since it returns false, the HREF should be ignored. What actually does happen? Can you create a small test that reproduces the problem? |