ejercicio4.html
Código Javascript:
Ver original
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame Remove this if you use the .htaccess --> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>HTML</title> <meta name="description" content=""> <meta name="author" content="rufus"> <script src="ej4_6.js"></script> <meta name="viewport" content="width=device-width; initial-scale=1.0"> <!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and delete these references --> <link rel="shortcut icon" href="/favicon.ico"> <link rel="apple-touch-icon" href="/apple-touch-icon.png"> </head> <body> <div> <header> <h1>HTML</h1> </header> <nav> <p> <a href="/">Home</a> </p> <p> <a href="/contact">Contact</a> </p> </nav> <div> <form name="formulario"> <input type="button" name="buttonOpen" onclick ="openWindow()" value="buttonOpen" style='visibility:visible;'/> <input type="button" name="buttonSend" value="buttonSend" style='visibility:hidden;' onclick ="sendValueToWindow()"/> <input type="button" name="closeButton" value="closeButton" style='visibility:hidden;'/> <input type="text" name="valorRecibido" style='visibility:hidden;'/> </form> </div> <footer> <p> © Copyright by rufus </p> </footer> </div> </body> </html>
otro ejercicio4_newwindow.html
Código HTML:
Ver original
y un archivo con las funciones de javascript para manipular los formus