How to create buttons in HTML and JavaScript to redirect pages to different pages
P粉523625080
P粉523625080 2023-08-10 12:14:18
0
1
430

I'm creating a website using VS code and I want to create a button that when clicked will redirect to another page on the website.

I want to jump to a new page by clicking the "MENU" button. I've created a new file for the page I want to redirect, just not sure how to get "MENU" to act as a button and take me there. I'm using JavaScript and HTML/CSS in VS code.

So I want the button to take me to MENU.js

I tried using HTML to create a button but it only works if I link to the URL. I also tried the following.


MENU


But it doesn't seem to work.

P粉523625080
P粉523625080

reply all (1)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!