How do I get BACK to the opening index.html page after redirect to a remote URL with function initRedirect()?
With code below I can associate an "Exit" right soft key while displaying the remote URL and I like that.
Now I want to associate "Back" using the left soft key so I can go back to the opening WRT index.html.
code portion from the WRT index.html
<script language="javascript" type="text/javascript" src="basic.js"></script>
<body onLoad="javascript:init();">
<div id="logo" align="center"><img src="images/info.png" alt="Hollywood-USA" border="2" /></div>
<div id="east" align="center"><a href="http://www.hollywood-usa.mobi/tocEAST.php">EAST</a></div>
<div id="south" align="center"><a href="http://www.hollywood-usa.mobi/tocSOUTH.php">SOUTH</a></div>
<div id="midwest" align="center"><a href="http://www.hollywood-usa.mobi/tocMIDWEST.php">MIDWEST</a></div>
<div id="west" align="center"><a href="http://www.hollywood-usa.mobi/tocWEST.php">WEST</a></div>
<div id="news" align="center"><a href="http://www.hollywood-usa.mobi/news.php">Showbiz News</a></div>
</body>
code from the basic.js
function init() {
// show soft keys
window.menu.showSoftkeys();
// set right softkey to "exit"
if (window.widget) {
menu.setRightSoftkeyLabel("", null);
}
//
document.getElementById('east').onclick = initRedirect;
document.getElementById('south').onclick = initRedirect;
document.getElementById('midwest').onclick = initRedirect;
document.getElementById('west').onclick = initRedirect;
document.getElementById('news').onclick = initRedirect;
/*
// create UI manager
uiManager = new UIManager();
}
// redirects nicely to show remote URL page + visible/functional "Exit" with right soft key
function initRedirect() {
// show soft keys
window.menu.showSoftkeys();
// set right softkey to "exit"
if (window.widget) {
menu.setRightSoftkeyLabel("", null);
}
self.location.href=url;
}
Cheers.

Reply With Quote



