Quiero hacer un redentor de moneda en mi expediente. Estoy tratando de usar javascript para obtener la entrada del texto, pero recibo los mismos mensajes: error de sintaxis y error de referencia. ¿Qué significa esto y cómo lo soluciono?
Aquí está mi código exacto:
<html> <head> <title>Alante de Nuza - Made in Nuza</title> <script> function onClick1() { if document.getElementById("Input1").value == "C120CC9" { document.getElementById("Paragraph1").innerHTMl = "Code Succesful!"; } else if { document.getElementById("Input1").value == "X999XX9" { document.getElementById("Paragraph1").innerHTMl = "Very Sneaky..."; } } } </script> </head> <body> <h1 style="font-family:cursive;">Alante de Nuza redeem</h1> <hr> <input id="Input1" type="text" placeholder="eg X999XX9" style="width:500px; height:100px; font-size:70px; text-align:center;"> <br> <br> <button onclick="onClick1()" style="border-radius:50px; text-align:center; font-size:60px; font-family:cursive; width: 300px; height:100px;">REDEEM</button> <p id="Paragraph1"></p> </body> </html>