+ 1

Pls I need a code that jumps to a HTML page using JavaScript

Hello

20th Oct 2023, 8:58 AM
Emmanuel Chidera
5 Antworten
+ 4
You can create a button or an event listener and use window.location = “pageNameHere.html”; Hope that helps
20th Oct 2023, 11:31 AM
Tony Stark
Tony Stark - avatar
+ 2
<html> <head> <script> function jumpToPage() {   window.location.href = "https://www.example.com"; } </script> </head> <body> <button onclick="jumpToPage()">Jump to Page</button> </body> </html>
22nd Oct 2023, 6:51 AM
Loki
Loki - avatar
+ 1
It helps but I need the source codepl🙏🙏🙏🙏🙏🙏
21st Oct 2023, 5:28 PM
Emmanuel Chidera
+ 1
The source code
22nd Oct 2023, 6:51 AM
Loki
Loki - avatar
+ 1
That’s it👍
23rd Oct 2023, 9:55 AM
Tony Stark
Tony Stark - avatar