On the Torch 9800 OS 6, my JS call doesn’t seem to be working properly. I’ve tried multiple approaches:
- Using body onload=document.location+=#page2
- Using a setTimeout() to wait for the DOM to load.
- Placing the JS call at the bottom, which is what I currently have:
The alert pops up, but I don’t see any HTML loaded. * This works on OS 5 *
<html>
<body>
<a id='page0'/>
<div>
...
</div>
<a id='page1'/>
<div>
...
</div>
<a id='page2'/>
<div>
...
</div>
<script type='text/javascript'>
window.onload=function()
{
alert('asdf');
document.location='app:#page2';
}
</script>
</body>
</html>
I’ve solved the issue by appending the anchor page to the end of the ‘name’ where the BrowserField object opens the HTML.