我想在Java脚本函数后面建立号召性用语链接。但是不知何故,我找不到问题。
<html>
<body>
<a href="javascript:void(0)" rel="noreferrer" onclick="exit_offer();PreventExitPop = false" class="claim">click here</a>
<script type="text/javascript">
function exit_offer() {
window.onbeforeunload=null;
window.location = “http://example.com”;
}
</script>
</body>
</html>