使用Javascript在新窗口中弹出

时间:2013-03-14 15:30:25

标签: javascript onclick target

我有以下代码行,我在新窗口中弹出时遇到问题,因为目标只想关注不是有效内容的网址:

<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<script type="text/javascript" src="/job/orgtools/ltilaunch/jobLtiLaunch.js"></script>
</head><body>
<p><span style="font-size: 14pt; color: #000080;"> <a href="#" onclick="javascript:lti_launch( {'handler_urn':'job/lti/job_mstr', 'skip_parent_check':'true','targetId':'assess'} );"><span style="color: #000080;">Assess</span></a> </span></p>
<p><span style="font-size: 14pt; color: #000080;"><a href="#" target="_blank" onclick="javascript:lti_launch( {'handler_urn':'job/lti/job_mstr', 'skip_parent_check':'true','targetId':'grade'} );"><span style="color: #000080;">Grade</span></a> </span></p>
</body>
</html>

1 个答案:

答案 0 :(得分:0)

试试这个 href="javascript:void(0)"