"_blank"、"_selft"的区别
window.open('http://www.imooc.com','_blank','width=600,height=400,top=100');
window.open('http://www.imooc.com','_selft','width=600,height=400,top=100');
结果有什么区别,,看不出来啊?
window.open('http://www.imooc.com','_blank','width=600,height=400,top=100');
window.open('http://www.imooc.com','_selft','width=600,height=400,top=100');
结果有什么区别,,看不出来啊?
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> 去掉所有页框并用
举报