in jquery, how to make the right click of the mouse have the same behavior of left click -
<a id="link1" href="link1">link1</a>
what want realize: when right click or left click these link, both go linked pages. have several questions:
how can href jquery in firefox , ie?
how can identify mouse event in firefox , ie, event.which has different behaivors in firefox , in ie
thank much
to href
, attribute of a
tag, can use
var the_href = $('#link1').attr('href');
this works on major browsers.
Comments
Post a Comment