Javascript怎样实现在本页中自动链接?

jb2008 2002-10-22 11:12:10

起动下面的方法,我要在本页打开内容,而不是在新的窗口中打开。可以不用window.open实现吗?
function menuHandler(actMnu,url)
{
window.open("http://www.csdn.com","MenuPopup",winprops);

}
...全文
39 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
孟子E章 2002-10-22
  • 打赏
  • 举报
回复
target="_self"是本页
孟子E章 2002-10-22
  • 打赏
  • 举报
回复
sorry:<a href="http://www.csdn.com" target="MenuPopup">
孟子E章 2002-10-22
  • 打赏
  • 举报
回复
href="http://www.csdn.com" target="winprops"

87,996

社区成员

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

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