Skip to content

Instantly share code, notes, and snippets.

@pbuzdin
Created January 15, 2019 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pbuzdin/12e3b19d4f39faba1f39d3360336f94c to your computer and use it in GitHub Desktop.
Save pbuzdin/12e3b19d4f39faba1f39d3360336f94c to your computer and use it in GitHub Desktop.
redir child target // source https://jsbin.com/puhudis
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>redir child target</title>
</head>
<body>
<script>
function go(){
pew.href="https://www.google.ru/search?newwindow=1&q=%D1%87%D0%B5%D1%80%D0%BD%D1%8B%D0%B9+%D0%B2%D0%BB%D0%B0%D1%81%D1%82%D0%B5%D0%BB%D0%B8%D0%BD&oq=%D1%87%D0%B5%D1%80%D0%BD%D1%8B%D0%B9+%D0%B2%D0%BB%D0%B0%D1%81%D1%82%D0%B5%D0%BB%D0%B8%D0%BD"; pew.click(); location.href=location.href;
}
</script>
<p>Введи любимого героя в запрос к <a href="https://www.google.ru" target="pew" id="pew" onclick="setTimeout(go, 10000)">https://www.google.ru</a></p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment