Use hyperlink and click action instead of meta refresh
This commit is contained in:
parent
3d34dc39ac
commit
b0769d8db1
@ -3,9 +3,23 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Install IPA</title>
|
<title>Install IPA</title>
|
||||||
<meta http-equiv="refresh" content="1; url=@INSTALL_URL@">
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user