Skip to content

Latest commit

 

History

History
29 lines (25 loc) · 686 Bytes

redirector.md

File metadata and controls

29 lines (25 loc) · 686 Bytes
title description date categories
Redirector
A simple redirector to a URL entered by the user
2023-01-01
tools

Input URL into the box and click the go button

Then click the link to go to the website.

<script> function func() { var u = document.getElementById("url").value; if (u.indexOf("http://") == -1 && u.indexOf("https://") == -1) { u = "http://" + u; } var link = document.getElementById("link"); link.href = u; console.log(u); } </script> go click here to go to your website