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.
<script>
if(document.all){
banner = document.all('banner');
}
if(document.getElementByID){
banner = document.getElementByID('banner');
}
</script>
and then for a button I have:
<form>
<input name="close" value="Close Banner" type="button" onClick="banner.style.display='none'">
</form>
<html><head>
<style type="text/css">
#banner {display: inline; text-align: center}
</style>
<script>
if(document.all){
banner = document.all('banner');
}
if(document.getElementbyId('banner'){
banner = document.getElementById('banner');
}
</script>
</head>
<body bgcolor="#FF6600">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="[URL unfurl="true"]http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0"[/URL]
id="banner" width="750" height="125">
<param name="movie" value="Movie1.swf">
<param name="bgcolor" value="#FF6600">
<embed type="application/x-shockwave-flash" pluginspage="[URL unfurl="true"]http://www.macromedia.com/go/getflashplayer"[/URL]
width="750" height="125"
name="Movie1" src="Movie1.swf"
bgcolor="#FF6600"></embed></object>
<form><input name="close_banner" value="Close Banner" type="button" onClick="banner.style.display='none'"></form>
</body>
</html>
<html><head>
<style type="text/css">
#banner {display: inline; text-align: center}
</style>
<script>
if(document.all){
banner = document.all('banner');
}
if(document.getElementbyId){
banner = document.getElementById('banner');
}
</script>
</head>
<body bgcolor="#FF6600">
<div id="banner">This is a test.</div>
<form><input name="close_banner" value="Close Banner" type="button" onClick="banner.style.display='none'"></form>
</body>
</html>
<html><head>
<style type="text/css">
#banner {display: inline; text-align: center}
</style>
<script>
function hide(id) {
document.getElementById(id).style.display = 'none';
}
</script>
</head>
<body bgcolor="#FF6600">
<div id="banner">This is a test.</div>
<form><input name="close_banner" value="Close Banner" type="button" onClick="hide('banner');"></form>
</body>
</html>