//$('#gototarget').get(0).click();//这个在FF下会失效,所以解决兼容问题如下
$("#gototarget").click(function(){
window.open($(this).attr("href"),$(this).attr("target"));
});
// 触发单击事件
$("#gototarget").click();
<A href="javascript:void(0)" id="startExam" CLASS="VersionFont" target="MAIN" οnclick="startExam()">点击判断触发</A>
<A href="./hr/probationexam/probationexam.jsp" id="gototarget" name="gototarget" target="MAIN"></a>//真正触发的是这个链接