简体   繁体   English

单击链接时->转到其他选项卡,而无需重新加载页面

[英]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.

相关问题 单击内容选项卡使用AngularJS路由到其他页面 - Clicking on content tab routing to different page with AngularJS 单击AngularJS中的链接时防止页面刷新 - Prevent page refresh when clicking a link in AngularJS AngularJS-在不重新加载页面的情况下重新加载div - AngularJS - reloading div without reloading page 如何仅在单击选项卡时才加载页面 - How to make a page load only when clicking a tab 如何在重新加载页面或使用AngularJS单击“后退”按钮时保存搜索结果 - How to save search results when reloading page or clicking “back” button with AngularJS 如何在不重新加载页面的情况下打开新标签并使用新URL更新地址栏 - How to open a new tab and update address bar with new URL without reloading the page 为单页应用程序 (SPA) 创建链接以登陆不同的选项卡 - create a link for a single page application (SPA) to land on different tab 回到状态时无需重新加载以前的视图数据即可更改状态 - Changing states without reloading previous view data when I go back to it 如何通过单击下一步按钮使用Angular js转到具有不同数据的同一页面到laravel - how to go to same page with different data into laravel using angular js by clicking next button 重新加载角度标签时,agGrid永不就绪 - agGrid never ready when reloading angular tab
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM