function get (objectId) {
function get document.getElementById(objectId)) {
return document.getElementById(objectId);
.all(objectId);
} else if (document.layers && document.layers[objectId]) {
return document.layers[ 🎜> }
}
function get(p){
//var url=location.search;
var url= document.URL.toString();
var tmpStr=p "=";
var tmp_reg =eval("/[?&]" tmpStr "/i");
if(url.search(tmp_reg)==-1)return null;
else{
var a=url.split (/[?&]/);
for(var i=0;i
if(a[i].search(eval("/^" tmpStr "/i" ) ) ))!=-1)return a[i].substring(tmpStr.length);
}
}
get window.onload=function (){
get window.onload=function (){
getObject(" key " ).value = get("k");
//key作為輸入裡的名稱,接收到的值就是瀏覽器裡的k參數
//k是瀏覽器裡的參數名稱
}