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 language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script language="javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script language="javascript">
function createWindow() {
//create div element in DOM
var element = document.createElement('div');
//use jQuery syntax to set properties
$(element).html("Hello World");
$(element).addClass("window");
$(element).draggable();
//add to desktop div
$("#desktop").append(element);
}
</script>
<style type="text/css">
.desktop { position: absolute; top: 0px; left: 0px; width: 300px; height: 300px; border:1px solid #000; background-color: #BBE; }
.window { position: absolute; top: 50px; left: 50px; width: 100px; height: 100px; border:1px solid #000; background-color: #EEE; }
</style>
<html>
<head>
<script language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script language="javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script language="javascript">
function createWindow() {
var element = document.createElement('div');
var html = "window";
$(element).html(html);
$(element).addClass("window");
$(element).draggable();
//add to desktop
$("#desktop").append(element);
}
</script>
<style type="text/css">
.desktop { position: absolute; top: 0px; left: 0px; width: 300px; height: 300px; border:1px solid #000; background-color: #BBE; }
.window { position: absolute; top: 50px; left: 50px; width: 100px; height: 100px; border:1px solid #000; background-color: #EEE; }
</style>
</head>
<body>
<div id="desktop" class="desktop">
<a href="javascript: createWindow();">Create Window</a>
</div>
</body>
</html>