+ 2
How do i know what to put after the <a href> in other to get to another webpage.Do i create the link, if yes how do i create it.
5 Réponses
+ 1
Tioluwanimofe Adesanya
First clarify
You need like create a link or want your webpage to me redirected to some other page as soon as the page loads.
+ 1
If the point is second one then you need to write
window.location.href = "https://example.com";
0
Tioluwanimofe Adesanya
If you are using <a href then you are creating a link. You just need to pass the path in href attribute.