A
Anonymous
Guest
Hello!
When it comes to inserting links via Javascript, we usually use 2 different methods, but we are not specialists in this. We normally use the following methods:
Which of the 2 is more suitable to implement, are there other ways to introduce the link via JS?
Thank you very much and best regards.
When it comes to inserting links via Javascript, we usually use 2 different methods, but we are not specialists in this. We normally use the following methods:
- <span onclick="window.location.href='https://www.domain.com/'">Anchor</span>
- <span onclick="window.open('https://www.domain.com/','_self')">Anchor</span>
Which of the 2 is more suitable to implement, are there other ways to introduce the link via JS?
Thank you very much and best regards.
Last edited by a moderator: