"_blank"、"_selft"的區別
?window.open('http://www.xianlaiwan.cn','_blank','width=600,height=400,top=100');
?window.open('http://www.xianlaiwan.cn','_selft','width=600,height=400,top=100');
結果有什么區別,,看不出來???
?window.open('http://www.xianlaiwan.cn','_blank','width=600,height=400,top=100');
?window.open('http://www.xianlaiwan.cn','_selft','width=600,height=400,top=100');
結果有什么區別,,看不出來???
2015-05-19
舉報
2015-06-22
self寫錯了吧 編輯器不認識就用默認值_blank來操作了
2015-05-19
第二個參數只是名字,供js使用的
比如:
2015-05-19
你這里的_blank. _self是XHTML中a的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>???????????把文檔調入當前頁框??
4._top??????????<a href="document.html" target="_top">my document</a>????????????去掉所有頁框并用
2015-05-19
是_self不是_selft吧,JavaScript很多拼寫錯誤都會被略過然后用默認值代替。