跳转至
function topage() { var toPage = document.getElementById("toPage").value; reg = /^[-+]?\d+$/; if (!reg.test(toPage) || toPage < 0) { alert("请输入大于0数字!"); } else { window.location = 'news.aspx?PageID=' + toPage; } }
博聚网