Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <body>
- <p>Introduzca el año y el mes para obtener el número de días que le corresponden al mes elegido</p>
- <form id="frm1" action="form_action.asp">
- Año: <input type="text" name="fname"><br>
- Mes: <input type="text" name="lname"><br><br>
- <input type="button" onclick="window.alert(document.getElementById("fname").value)" value="Enviar">
- </form>
- <script>
- function myFunction() {
- document.getElementById(frm1)
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement