-2
function showMessage()
{
var num=new Array('25926419','9920084590','9867988449','28758869','28521181');
var contact= document.getElementById('contact').value;
if (num.indexOf(contact) > -1)
{
window.location='address-directory.php';
}
else
{
document.getElementById('errordiv').innerHTML="you are not allowed to see Member Details";
$("#myModal").modal('show');
return false;
}
}
window.location的不在此功能的工作,我想它重定向另一頁上window.location的是不工作的JavaScript
它以什麼方式不起作用?是否有錯誤訊息? – Robert