骆驼您好,刚才没看到你的回贴的时候,那个贴我已经结贴了,我还有问题请教,请进,多谢。

dudu2000 2003-01-14 03:54:17
<a onclick="if(this.isContentEditable)window.open(this.href)" href=aasdf.htm>sklfjd</a>
我不想打开新窗口,想在当前窗口中让文字链接好使,怎么办?
...全文
33 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
wsj 2003-01-14
  • 打赏
  • 举报
回复
上一个会使浏览器不能回退


<a onclick="if(this.isContentEditable)location.href=this.href" href=aasdf.htm>sklfjd</a>
wsj 2003-01-14
  • 打赏
  • 举报
回复
<a onclick="if(this.isContentEditable)location.replace(this.href)" href=aasdf.htm>sklfjd</a>
wsj 2003-01-14
  • 打赏
  • 举报
回复
<a onclick="if(this.isContentEditable)window.open(this.href,'_self')" href=aasdf.htm>sklfjd</a>

87,996

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧