从a.html 跳转到b.html 并吧 a.html 的值传入b.html
var
getval =document.getElementByIdx_x("cc").value;
document.location.href("b.html?cc="+getval);
}
var thisURL = document.URL;
var
getval =thisURL.split('?')[1];
var showval= getval.split("=")[1];
function
showvalf(){
alert(showval);
document.getElementByIdx_x('ee').value=showval;
}
《input type="text"
id ="ee" /》
【a.html】
function
to (){
《input type="text" id ="cc" >
【b.html】