Hola me gustaría ejecutar un script en un frame como podría hacerlo | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Hola me gustaría ejecutar un script en un frame como podría hacerlo

Este es donde he definido los frames <html> <head> <title>Jarbis</title> </head> <FRAMESET rows="20%,80%" noresize> <FRAME SRC="jarbis1.html" NAME="1"frameborder="0"> <FRAME SRC="jarbis2.html" NAME="2" frameborder="0"> <noframes>Tu navegador no aguanta los frames lo sentimos</noframes> </frameset> </html> Aquí es donde tengo tengo el script <html> <head> </head> <body> <form onsubmit="return validate()" method="post"> <table border="0"> <tr> <td> <img src="Usuario.jpg"/> </td> <td> <input type="text" id="n1" size="37" name="n1" autofocus/> </td> <td> <input type="submit" value=">"/> </td> </tr> </table> </form> <script target="2"> function validate() { var n1 = document.getElementById("n1"); if(n1.value == "hola") { document.write("hola"); } } </script> </body> </html> Y aqui es donde quiero ejecutarlo <Html> <Head> </Head> <Body> </Body> </Html>

28th Jul 2019, 11:13 AM
PHG
PHG - avatar
0 Answers