js tweak, make variable local
This commit is contained in:
parent
9ca946809b
commit
1da7a9130e
1 changed files with 5 additions and 5 deletions
|
@ -83,14 +83,14 @@
|
|||
this.parentNode.submit();
|
||||
return false;
|
||||
} else if (document.getElementById('error')) {
|
||||
return;
|
||||
|
||||
} else {
|
||||
$html = document.createElement("div");
|
||||
$html.id = 'error';
|
||||
$html.innerHTML = "Oops! looks like you didn't enter a URL. Try starting with http://";
|
||||
var html = document.createElement("div");
|
||||
html.id = 'error';
|
||||
html.innerHTML = "Oops! looks like you didn't enter a URL. Try starting with http://";
|
||||
this.parentNode.appendChild($html)
|
||||
}
|
||||
})
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue