Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way I can navigate to a link using options in html using JavaScript?

I created a list of options using html and placed a button beneath it...I want the user to select an option and when he clicks on the button,it redirects him to a different page... Is there anyway that I can do this using JavaScript please?

like image 980
Mohammed Awal Avatar asked Dec 05 '25 16:12

Mohammed Awal


1 Answers

Yes, window.location.href = "/someLocation" just is made for you.

like image 122
Azamat Avatar answered Dec 08 '25 09:12

Azamat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!