html頁面互相傳值的問題解決方案
來源:易賢網(wǎng) 閱讀:1703 次 日期:2014-10-27 09:30:43
溫馨提示:易賢網(wǎng)小編為您整理了“html頁面互相傳值的問題解決方案”,方便廣大網(wǎng)友查閱!

第一次使用隨筆,感覺還是蠻別扭的

a.html

代碼如下:

<html>

<head>

<title> demo </title>

<meta name=author content=xugang />

</head>

<body>

<form name=frm method=get action=b.html onsubmit=return foo()>

<input type=hidden id=hid value=123 name=hid>

<input type=submit value=提交>

</form>

</body>

</html>

b.html

代碼如下:

<html>

<head>

<title> new document </title>

</head>

<body>

<script language=javascript>

document.write(location+

);

document.write(location.search+

);

document.write(decodeuricomponent(location.search.substr(location.search.indexof(=)+1)));

</script>

</body>

</html>

更多信息請查看IT技術專欄

更多信息請查看網(wǎng)頁制作
易賢網(wǎng)手機網(wǎng)站地址:html頁面互相傳值的問題解決方案
由于各方面情況的不斷調整與變化,易賢網(wǎng)提供的所有考試信息和咨詢回復僅供參考,敬請考生以權威部門公布的正式信息和咨詢?yōu)闇剩?/div>
關于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點

版權所有:易賢網(wǎng)