Use hyperlink and click action instead of meta refresh

This commit is contained in:
Sander van der Burg 2014-08-01 19:26:34 +02:00
parent 3d34dc39ac
commit b0769d8db1

View File

@ -3,9 +3,23 @@
<html>
<head>
<title>Install IPA</title>
<meta http-equiv="refresh" content="1; url=@INSTALL_URL@">
</head>
<body>
<a id="forwardlink" href="@INSTALL_URL@">Go to the install page or wait a second</a>
<script type="text/javascript">
setTimeout(function() {
var link = document.getElementById('forwardlink');
if(document.createEvent) {
var eventObj = document.createEvent('MouseEvents');
eventObj.initEvent('click', true, false);
link.dispatchEvent(eventObj);
} else if(document.createEventObject) {
link.fireEvent('onclick');
}
}, 1000);
</script>
</body>
</html>