[英]when clicking on a link -> go to different tab without reloading the page
<a href="##webinar" onclick="location.reload();">goTOWebinarTab</a>
I'm using the code to go to the respective tab in the same page(angular tabs), and it is working fine only with the page reload is there a way I can do it without reloading the page. 我正在使用代码转到同一页面中的相应选项卡(角选项卡),并且只有在页面重新加载时它才能正常工作,有没有办法我可以在不重新加载页面的情况下进行操作。
actual URL=/adv/about/research/ 实际网址= / adv / about / research /
target URL=/adv/about/research/##webinar 目标URL = / adv / about / research / ## webinar
Remove onclick="location.reload();"
删除onclick="location.reload();"
and use href only 并仅使用href
<a href="##webinar" >goTOWebinarTab</a>
because The reload() method is used to reload the current document. 因为reload()方法用于重新加载当前文档。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.