搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

use a link to change focus to another tab and scroll to a anchor tag with a named ID

  • 无回复
  • 1 人有此问题
  • 3 次查看
more options

I am creating a webpage that has a list of links in one table that are used to go to a specific point in another table using <A href='#identifier'> in the link and <A id='identifier'> in the target table. The list is very long, so I am creating the list of links in a separate document until it is completed. Until then, I test the links by having the link href set to 'webpage.html#identifier', but all this ends up doing is opening another tab and reloading the page when it's already open in a different tab. I am using the target='_blank' attribute to go to another tab, but I'm sure this isn't the proper way to do it.

Is there a way to use a link to go to an already open tab and perform the search for the identifier in that tab rather than opening a new tab and reloading the page repeatedly?

I am creating a webpage that has a list of links in one table that are used to go to a specific point in another table using &lt;A href='#identifier'&gt; in the link and &lt;A id='identifier'&gt; in the target table. The list is very long, so I am creating the list of links in a separate document until it is completed. Until then, I test the links by having the link href set to 'webpage.html#identifier', but all this ends up doing is opening another tab and reloading the page when it's already open in a different tab. I am using the target='_blank' attribute to go to another tab, but I'm sure this isn't the proper way to do it. Is there a way to use a link to go to an already open tab and perform the search for the identifier in that tab rather than opening a new tab and reloading the page repeatedly?

由Wayne于修改