如何鏈接到另一個頁面提示在javascript在asp.net鏈接到另一個網頁中promp在javascript在asp.net
在其他我要將另一個頁面
function a()
{
var s = prompt("hello");
if (s != 123) {
alert("enter number correctly");
return true;
}
else
return false;
}
如何鏈接到另一個頁面提示在javascript在asp.net鏈接到另一個網頁中promp在javascript在asp.net
在其他我要將另一個頁面
function a()
{
var s = prompt("hello");
if (s != 123) {
alert("enter number correctly");
return true;
}
else
return false;
}
你可以使用window.location.href在其他部分打開其他頁面。
function a()
{
var s = prompt("hello");
if (s != 123) {
alert("enter number correctly");
return true;
}
else
window.location.href = 'http://www.google.com';
}
你看「Javascript重定向」了嗎? - ''window.location =「http://www.yoururl.com」;' –