Odd window.location behavior

  • 1
  • Problem
  • Updated 9 years ago
  • Solved
So here is what happens

on index.html I have a div which has an onclick="window.location = 'games.html'"

When touched it works as expected and goes to games.html

Now on games.html there is a div with onclick="window.locaiton = 'listgames.html'"

When touched it does nothing. It is highlighted green but thats it.

I am testing on Android with phonegap build
Photo of kp.kody

kp.kody

  • 12 Posts
  • 0 Reply Likes

Posted 9 years ago

  • 1
Photo of Andrew Lunny

Andrew Lunny

  • 1911 Posts
  • 199 Reply Likes
Assuming you copied and pasted that code, you have a type in your second call to window.location.