PDA

View Full Version : onLoad="window.location.href='page2.html';" not working




Danneman101
Oct 28, 2009, 03:40 PM
Ive got a webview which loads a local html.

From that html I can easily navigate to another html via the <a href>-tag.


<a href="page2.html">go to page2</a>


But surprisingly I cant use javascript to navigate between the two html's.


<body onLoad="window.location.href='page2.html';>


This code will not go to page2.html on load.

Any ideas why, and how I can get around this?

Thanks,
Daniel



jnic
Oct 29, 2009, 05:15 AM
<body onLoad="window.location.href='page2.html';">

Danneman101
Oct 29, 2009, 04:55 PM
<body onLoad="window.location.href='page2.html';">

Sorry - that was only a typo when transferring it to the forum. Still not working :/