1
我試圖在訪問者輸入促銷活動的訪問代碼後創建重定向。它適用於OS X Chrome & Safari和Windows Chrome,但不支持OS X Firefox或Windows IE & Firefox。JavaScript重定向表單在Chrome/Safari中,但也不是Firefox/IE
網站位於https://www.preciousmetals.com/offer12
我的頭這個腳本...
<script type="text/javascript">
function checkCode() {
if (this.password.value.toLowerCase() == 'AAL1012'.toLowerCase()) {
window.location='https://www.preciousmetals.com/special-offer-12.html';
}
else {
alert('Wrong Access Code!');
}
return false;
}
</script>
而這在體內...
<form onsubmit="return checkCode()">
<h3 style="text-align: center;">
Enter Access Code To Proceed
</h3>
<div style="text-align: center;">
<input type="password" id="password" />
<input type="submit" value="Proceed" />
</div>
</form>
我知道,但真的有沒有在這種使用情況下的安全係數。他們只是跟蹤訪問代碼的廣告系列響應。 這很好用!謝謝! –