Answers for "open link on click js"

5

javascript open url

window.location.href = "http://example.com/";
Posted by: Guest on May-21-2020
0

onclick url

<button onclick="location.href='logout.php';">logout</button>
Posted by: Guest on July-04-2020
1

onclick open link js

window.open(url);
Posted by: Guest on June-06-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language