Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Danneman101

macrumors 6502
Original poster
Aug 14, 2008
361
1
Ive got a webview which loads a local html.

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

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

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

Code:
<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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.