Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<html>
<head></head>
<body>
Content for mainw <script type="text/javascript">document.write(new Date());</script>
</body>
</html>
<html>
<head>
<script type="text/javascript">
<!--
var winHandle = null;
function openMain() {
winHandle = window.open('mainw.html', 'mainw', '');
}
function reloadMain() {
if (winHandle != null) winHandle.location.reload(true);
}
//-->
</script>
</head>
<body>
<a href="javascript:openMain();">Open window called 'mainw'</a>
<br />
<a href="javascript:reloadMain();">Reload window called 'mainw'</a>
</body>
</html>
var winHandle = window.open('mainw.html', 'mainw', '');
window.name="mainw";
[green]// Establishes a connection[/green]
var mainw = window.open('', 'mainw');
[green]// Now you can use mainw to refer to the window[/green]
mainw.location.reload();
<html>
<head>
<script type="text/javascript">
<!--
window.name = 'mainw';
//-->
</script>
</head>
<body>
Content for mainw <script type="text/javascript">document.write(new Date());</script>
</body>
</html>
<html>
<head>
<script type="text/javascript">
<!--
var winHandle = null;
function openMain() {
winHandle = window.open('mainw.html', 'mainw', '');
}
function reloadMain() {
if (winHandle != null) winHandle.location.reload(true);
}
//-->
</script>
</head>
<body>
<a href="javascript:openMain();">Get handle to window called 'mainw'</a>
<br />
<a href="javascript:reloadMain();">Reload window called 'mainw'</a>
</body>
</html>