I'm trying to make a page that you type in something in the textbox and the page will alert the text in the textbox but look at the function alert it's not working please help!!!
<!DOCTYPE html>
<html>
<head>
<script>
function alert() {
var userInput = document.getElementById("1").value;
var email = document.getElementsByClassName("gb_b gb_7a gb_R gb_3a").innerHTML;
window.alert("From: ", +email + " Message: " + userInput);
}
</script>
<base target="_top">
</head>
<body>
<input id="1" type="text" value="Write what you want the page to say">
<button onclick="alert()">Enter</button>
</body>
</html>
alert?document.getElementsByClassName(names);