2

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

Andreas Grech
  • 105,982
  • 98
  • 297
  • 360

1 Answers1

12

You set the location property of the window:

window.location.href = 'http://www.guffa.com/';
Guffa
  • 687,336
  • 108
  • 737
  • 1,005