a href link open two windows

MyPlanet 2003-08-18 05:07:54
The following href link open two windows. One just show [object], and another one show the real picture. Why?

<a href='javascript:window.open("../my_album/picture_popup.html?
Title=Title for testing1&FileName=testpic.jpg",
"popup",
"width=742,height=595,resizable=no")'
target='_blank'>Picture</a>
...全文
57 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
wind0209 2003-08-18
  • 打赏
  • 举报
回复
<a href='#' onclick='window.open("../my_album/picture_popup.html?Title=Title for testing1&FileName=testpic.jpg","popup","width=742,height=595,resizable=no");window.open("../my_album/picture_popup.html?Title=Title for testing1&FileName=testpic.jpg","popup2","width=742,height=595,resizable=no")' target='_blank'>Picture</a>
希默软件 2003-08-18
  • 打赏
  • 举报
回复
You don't want visitor see the URL? You can use window.open() method twice.
MyPlanet 2003-08-18
  • 打赏
  • 举报
回复
Now I get two new windows both with the picture, but one window is with menu, toolbar and href link box, and another window is just a popup window.

I think the one window with menu is opened by href='../my_album/...', and another is opened by "onclick='window.open("../my_album/...'. Is there a way to disable the href='../my_album/...'?

Thanks.
希默软件 2003-08-18
  • 打赏
  • 举报
回复
<a href='../my_album/picture_popup.html?Title=Title for testing1&FileName=testpic.jpg' onclick='window.open("../my_album/picture_popup.html?Title=Title for testing1&FileName=testpic.jpg","popup","width=742,height=595,resizable=no")' target='_blank'>Picture</a>

61,125

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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