日期:2014-05-17 浏览次数:20663 次
<html> <head> <title>1</title> <Script language="javascript"> function GetRequest() { var url = location.search; var theRequest = new Object(); if (url.indexOf("?") != -1) { var str = url.substr(1); strs = str.split("&"); for(var i = 0; i < strs.length; i ++) { theRequest[strs[i].split("=")[0]]=unescape(strs[i].split("=")[1]); } } return theRequest; } function PageLoad(){ var Request = new Object(); Request = GetRequest(); if(null == Request['inputTxt'] || "undefined"== Request['inputTxt']) document.getElementById("txtShow").value = ""; else document.getElementById("txtShow").value = Request['inputTxt']; } function open2(){ window.open("2.html"); } </Script> </head> <body onload="PageLoad();"> <input type="text" id="txtShow" /> <input type="button" id="btnC" value="Change" onclick="window.open('2.html');" /> </body> </html>