<input type="text" id="pageGo" name="pageGo" size="2"><input type="submit" name="pageSubmit" value="GO" onClick="newPage();">
//js代码如下:
//即可实现跳转到指定页面。
function newPage(){
    var p = document.getElementById("pageGo").value;
    var href = location.href;
    if(/page=\d+/.test(href)){
        href = href.replace(/page=\d+/,"page="+p);
    }else if(href.indexOf('?')==-1){
        href = href+"?page="+p;
    }else{
        href = href+"&p="+p;
    }//if
    location.href = href;
}//newPage