如何在asp.net中的javascript提示中链接到另一个页面
否则我想链接另一个页面
function  a()
{
    var s = prompt("hello");
    if (s != 123) {
        alert("enter number correctly");
        return true;
    }
    else
        return false;
}
    如何在asp.net中的javascript提示中链接到另一个页面
否则我想链接另一个页面
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'; 
}