How do you load a page in the same window via javascript?
Asked
Active
Viewed 1.3k times
1 Answers
12
You set the location property of the window:
window.location.href = 'http://www.guffa.com/';

Guffa
- 687,336
- 108
- 737
- 1,005
-
1This does not seem to work in mobile Safari on IOS. window.open (...) works. Any ideas? – Martin Hepp Dec 20 '11 at 18:31
-
Im trying with window.open but not having much success – Purefan Jun 15 '12 at 09:46