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>
function getLocation() {
var str = String(window.location);
return str.substr(str.lastIndexOf("/") + 1, str.length - str.lastIndexOf("/"));
}
</script>
<body>
<form name=blahForm>
<input type=button value='click me' onclick='alert(getLocation())'>
</form>
</body>
<html>
<head>
<script type="text/javascript">
function testURL()
{
var myPath = location.pathname;
if (myPath.lastIndexOf("/") > -1) return (myPath.substr(myPath.lastIndexOf("/")+1));
return (myPath);
}
</script>
</head>
<body>
<a href="javascript:alert(testURL());">Test</a>
</body>
</html>