English 中文(简体)
如何把重点放在已经打开的火ox上?
原标题:How to set focus to already opened tab in firefox?

我有一条连接点,打开了火ox新刺中的一页。

<a target="_default" href= /portal.html  >
    Go to Portal
</a>

然而,当我再次点击这一链接时,it恢复开张的表格,并且没有把注意力放在上,因此用户根本无法知道布塔的开张。

是否有任何办法可以 gr开开放的表格,并在任何其它工作开始后把重点放在随后的点击上。

感谢。

问题回答

采用制表手名称来了解重点可能是有益的。

win = window.open("https://www.google.com", "test");

win.focus();

如今,上述第1行的浏览器将首先找到标有test的表格,并将其上载:urlhttps://www.google.com,如果它找不到一个标有test的表格,它将打开一个新条目。 在第二行的运行中,它将把重点放在从第一行装载的同一表格上。

I had a similar problem in my project. Luckily, whenever I needed to set focus on already opened tab, it also needed to be refreshed. So I did it with the following trick, which first opened again tab with same href and target, got reference of that window back, closed it, and opened again with same parameters.

popup = window.open( /popup.html ,  _popup )
popup.close()
popup = window.open( /popup.html ,  _popup )

页: 1

每个制表通常在单独的加工沙箱中运行。 这是不可能的。

最多可尝试target=_blank>

您可能使用<代码>_blank <>/code>和一些联合材料代码,这些代码在以前用 co基跟踪为同一卢爱L开立的表格上封。

该页(你正在新表格中开张)的建立方式是,写出一个具有一定价值的 co(即目前磨粉厂)。 它还应当有某种定期投票人,检查这一 co子的价值,并在价值被认为发生变化时关闭。 唯一能够改变这种价值的方式是在另一个表格/表格中打开同一ur时。

http://www.un.org。 无法确定浏览器是否允许窗口。 关闭时,没有用户,就会被触发!





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签