Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Window parent location?

Tags:

javascript

We want our window.parent to link to another page on click, how can we go about doing this?

like image 539
Latox Avatar asked Aug 26 '26 20:08

Latox


1 Answers

window.parent.location.href = 'somePage.html';

or in a link:

<a href="#" onclick="window.parent.location.href = 'somePage.html';">link</a>

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!