Exorcista12 Posted September 28, 2010 Report Share Posted September 28, 2010 (edited) Eh Creado un Programa en visual basic Script, pero no funciona. Lo que debe hacer el programa es ingresar un numero, y luego mostrar, los numeros del 1 al numero ingresado. Ejemplo: ingresado 5... 1 2 3 4 5 Asi Como deberia de corregir mi programa para que funcione. Aqui el Codigo <html> <body> <center> <script language="vbscript"> sub lista() dim n, r n=datos.txt_num value for r = 1 to n document.write® document.wrie("<p>") next r end sub </script> <body> <form name = "datos"> <center> Numeros<p> <input type="text" name="txt_num" value=""> <p> <input type="button" name="cmd_calcular" value="Aceptar" onclick=lista()"> </center> </form> </body> </html> Ojala que sepan ayudarme Edited September 28, 2010 by Exorcista12 Link to comment Share on other sites More sharing options...
Ra Posted September 28, 2010 Report Share Posted September 28, 2010 Se mueve a Webmaster.... (Scripting) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now