重庆巴山三轮摩托车150:请问在JS中如果在当前页面打开文件,就相当于html中的_self一样
来源:百度文库 编辑:杭州交通信息网 时间:2024/04/27 22:49:58
_blank是window.open
html中_blank在js中是window.open
请问_self在js中是????
html中_blank在js中是window.open
请问_self在js中是????
你的意思是<a href="123.htm" target="_self">abc</a>用js实现?
<a href="javascript:self();">abc</a>
<script>
function self(){
window.location="123.htm"
}
</script>
不知道