Hi guys,
I got this code inside a javascript function and it's not working. How to make it working?
And the HTML code is:Code:go_here = document.getElementById("go_here"); link = "welcome.php"; function GoToTheLink() { location = link.href; } go_here.addEventListener("click", function(event) { GoToTheLink(); });
What I got is this:Code:<button id=go_here>Go Here</button>
ThanksCode:http://localhost/project/home/undefined



Reply With Quote
Bookmarks