<form> <input type="text" value=""> <input type="text" value=""> <input type="submit" value="enviar" onclick="enviarDatos()"> </form>