-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathredirect.html
28 lines (26 loc) · 1.13 KB
/
redirect.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<style>
a {
margin: 50px;
font-size: xx-large;
}
</style>
<script>
function openNew() {
window.open("js-redirect.html", "_blank", "noopener");
}
function openBlank() {
const win = window.open("", "_blank", "");
//newWin.document.write('<meta http-equiv="Refresh" content="0; URL=textbox.html#:~:text=fasd-,asdlfkjalksdfjalskdjflaksdjflkasjd">');
//requestAnimationFrame(() => {
win.document.write('<meta name=\"referrer\" content=\"no-referrer\"><meta http-equiv=\"refresh\" content=\"0; url=http://bokand.github.io/textbox.html#:~:text=fasd-,asdlfkjalksdfjalskdjflaksdjflkasjd\">');
win.document.close();
//});
}
</script>
<p><a href="js-raf-redirect.html">JS Redirect After RAF</a></p>
<p><a href="js-redirect.html">JS Redirect immediate</a></p>
<p><a href="meta-redirect.html">Meta refresh</a></p>
<p><a href="" onclick="openNew();">Window Open + JS Redirect</a></p>
<p><a href="" onclick="openBlank();">Window Open Blank doc.write meta refresh</a></p>
<p><a href="https://bokan-nodejs-playground.ue.r.appspot.com/redirect-301-fragment" referrerpolicy="unsafe-url">To 301 redirect</a></p>