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.
function function1([!]e[/!])
[b]<html>[/b]
[b]<body>[/b]
[b]<script[/b] [maroon]language[/maroon][teal]=[/teal][green][i]"JavaScript"[/i][/green][b]>[/b]
function function1(e) {
var targ;
if (!e) var e = window.event;
if (e.target) targ = e.target;
else if (e.srcElement) targ = e.srcElement;
if (targ.nodeType == 3) // defeat Safari bug
targ = targ.parentNode;
alert(targ.id);
}
[highlight]document.body.onclick=function1[/highlight]
[highlight]document.getElementById('myButton1').onclick=function1[/highlight]
[highlight]document.getElementById('myButton2').onclick=function1[/highlight]
[b]</script>[/b]
[b]<body[/b] [maroon]id[/maroon][teal]=[/teal][green][i]"myBody"[/i][/green][b]>[/b]
[b]<button[/b] [maroon]id[/maroon][teal]=[/teal][green][i]"myButton1"[/i][/green][b]>[/b]Button One[b]</button>[/b]
[b]<button[/b] [maroon]id[/maroon][teal]=[/teal][green][i]"myButton2"[/i][/green][b]>[/b]Button Two[b]</button>[/b]
[b]</body>[/b]
[b]</html>[/b]
[/ignore][/tt] and [tt][ignore]