<html>
<body>
Enter your firstname <input type="text" fname="submit">
Enter your lastname <input type="text" lname="submit">
<html>
<head>
<script type="text/javascript">
if(submit(lname==null))
{
alert(" be careful");
}
</script>
</head>
<input type="submit" onclick="submit()"
value="Submit" style="color:white; background-color:red;">
i need help with writing if loop for submit button an alert message that show we forgot to input name when click on submit button