Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Load a page in the same window via javascript

How do you load a page in the same window via javascript?


1 Answers

You set the location property of the window:

window.location.href = 'http://www.guffa.com/';
like image 74
Guffa Avatar answered Feb 14 '26 16:02

Guffa



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!