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>
<title>Test</title>
<style type="text/css">
.thumb {
width:100px;
border:5px solid black;
}
</style>
<script type="text/javascript">
function popWindow() {
var pathToBigImage = './large/';
var imgWidth = 640;
var imgHeight = 480;
window.open(pathToBigImage + this.src,'mypopup','width='+imgWidth+',height='+imgHeight);
}
function initThumbs() {
var myCol = document.getElementsByTagName('img');
for (var loop=0, max=myCol.length; loop < max; loop++) {
if (myCol[loop].className.indexOf('thumb') >= 0) {
myCol[loop].onclick = popWindow;
}
}
}
window.onload = initThumbs;
</script>
</head>
<body>
<img src="yourimage.jpg" class="thumb" />
</body>
</html>