javascript頁面間傳參數
a.html:
a.html
<script language="javascript">
function a(){
document.cookie="aaa1111";
//alert(document.cookie);
//window.location.href("b.html");
top.window.location = 'b.html';
}
</script>
<div>
<input type="button" onclick="a()" value="轉到b.html" />
</div>
posted on 2008-06-30 11:04 sunny spring 閱讀(406) 評論(0) 編輯 收藏 所屬分類: javaee