Symbian-Developers

The Official Developers Section => Symbian Software Development Discussions => The Developers Section => Symbian Web Runtime => Topic started by: Allstar12345 on September 23, 2012, 09:57:03 pm

Title: [CODE EXAMPLE] Auto refresh webpage
Post by: Allstar12345 on September 23, 2012, 09:57:03 pm
Code: [Select]
<meta http-equiv="REFRESH" content="10;url=URL HERE">
<html>
<head>
<script type="text/JavaScript">
<!--
function timedRefresh(timeoutPeriod) {
setTimeout("location.reload(true);",timeoutPeriod);
}
//   -->
</script>
</head>
<body onload="JavaScript:timedRefresh(5000);">
</body>

Set the auto refresh value in milliseconds aka 5000=5 seconds
Code: [Select]
<body onload="JavaScript:timedRefresh(5000);">