<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>URL</title>
<script>
> ~~~javascript
function checkUrl() {
> var v = document.urlForm.website.value;
> if (v.length !== 0) {
> location.href = v;
> }
> }
</script>
</head>
<body>
<form name="urlForm" onsubmit="checkUrl()">
<input name="website" type="url" required pattern="https?://.+" placeholder="website" value="">
<button type="submit">go</button>
</form></body>
</html>
>
Hi,
statt `location.href =v`{:.language-javascript}
window.open(v, '\_blank');
dann funktioniert es.
Danke an alle
> dat funzt