js tweak, make variable local

This commit is contained in:
Kyle Mahan 2015-08-03 04:40:33 +00:00
parent 9ca946809b
commit 1da7a9130e

View file

@ -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>