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>
<script>
var test1var = "test 1";
function alertTestVar()
{
alert(test1var);
alert(test2var);
alert(test3var);
alert(test4var);
alert(test5var);
}
function declaresGloballyWithinFunction()
{
test4var = "test 4";
var test5var = "test 5";
}
</script>
</head>
<body>
<script>
var test2var = "test 2";
</script>
Hi!
<br />
<input type='button' onclick='alertTestVar()' value='Test' />
<input type='button' onclick='declaresGloballyWithinFunction();alertTestVar()' value='Test Differently' />
<script>
var test3var = "test 3";
</script>
</body>
</html>