0
我使用此代碼出境交通出口業務代碼不起作用
<script type=」text/javascript」 language=」javascript」>
function areYouSure() {
areYouReallySure = true;
location.href=」http://example.com」
return 「WAIT! Maybe you’d like to try ShamWow instead?\r\nOrder now and we’ll have Chuck Norris personally deliver it!」;
}
window.onbeforeunload = areYouSure;
</script>
的代碼根本不會被調用。
這是一個演示http://provendate.com/testpop.php
爲什麼?
你使用」或」,有區別 –
一旦你用''替換了花哨的引號,'' – sachleen