href target屬性
1._blank <a href="document.html" target="_blank">my document</a>瀏覽器會另開一個新窗口顯示document.html文檔
2._parent <a href="document.html" target="_parent">my document</a>
指向父frameset文檔
3._self <a href="document.html" target="_self">my document</a>
把文檔調(diào)入當(dāng)前頁框
4._top <a href="document.html" target="_top">my document</a>
去掉所有頁框并用document.html取代frameset文檔
小技巧1:使別人的頁框不能引用你的網(wǎng)頁 在文件頭加:<base target="_top">
小技巧2:在當(dāng)前頁打開連接或做刷新,提交到當(dāng)前頁在文件頭加:<base target="_self">
posted on 2008-11-10 14:07 casta 閱讀(974) 評論(0) 編輯 收藏 所屬分類: html/jsp