Page 1 of 1

Links in JS

Posted: Wed Feb 10, 2021 11:50 pm
by rodanet
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 from Rodanet!

Re: Links in JS

Posted: Thu Feb 11, 2021 12:40 am
by simonbrahan
Is there any reason you can't just use proper <A> link elements? These will work much more predictably for users with screen readers or out of date devices.