<html>
<head>
<meta name="viewport" id="viewport" content="height=device-height,width=device-width,user-scalable=no"/>
<script type="text/javascript">
function helloWorld() {
alert("Hello World");
}
</script>
</head>
<body onload="helloWorld();">
<h1>Hello World</h1>
</body>
</html>
I have an application built using Blackberry WebWorks similar to the one above. I need the aforementioned helloWorld () function to run every time a user opens an application.
The problem is that the “onload” function only starts when the application is first launched or when the user exits the application by clicking the “freeze on mobile device” button, and not by pressing the “Back on mobile device” button.
Any suggestion?
source
share