More actions
Content deleted Content added
No edit summary |
Replaced content with "{{Create}}" Tag: Replaced |
||
Line 1: | Line 1: | ||
{{Create}} |
|||
<input type="text" id="urlInput" placeholder="Enter URL"> |
|||
<button onclick="redirectToInputURL()">Go</button> |
|||
<script> |
|||
function redirectToInputURL() { |
|||
var inputUrl = document.getElementById("urlInput").value; |
|||
if (inputUrl.trim() !== "") { |
|||
window.location.href = "http://wiki.jsal.org/wiki/" + encodeURIComponent(inputUrl); |
|||
} |
|||
} |
|||
</script> |
Latest revision as of 21:56, 23 August 2023
<input type="text" id="urlInput" placeholder="Enter URL"> <button onclick="redirectToInputURL()">Go</button>
<script> function redirectToInputURL() { var inputUrl = document.getElementById("urlInput").value; if (inputUrl.trim() !== "") { window.location.href = "http://example.com/" + encodeURIComponent(inputUrl); } } </script>