Ashok.A
Ashok.A

Reputation: 1

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/
target URL=/adv/about/research/##webinar

Upvotes: 0

Views: 228

Answers (1)

Jayanti Lal
Jayanti Lal

Reputation: 1185

Remove onclick="location.reload();"

and use href only

<a href="##webinar" >goTOWebinarTab</a> 

because The reload() method is used to reload the current document.

Upvotes: 1

Related Questions