VUrls.document.write("<script>");
VUrls.document.write("</script>");
Entre medio de esas dos etiquetas pondria una funcion javascript, pero de momento no he puesto nada, lo ejecuto y me da error del tipo "cadena sin terminar", que puede ser? os dejo el codiguillo.
Código:
function SacaMapa() { var MapaWeb = window.open("","MapaWeb","width=740, height=560, menubar=no, resizable=no, top=70, left=200, scrollbars=no,toolbar=no,location=no"); MapaWeb.document.write("<html><head><title>Agenda Comercial: Mapa del Web</title>"); MapaWeb.document.write("<style type='text/css'>"); MapaWeb.document.write("a:hover {color: #990000; text-decoration: underline;}"); MapaWeb.document.write("body {background-image: url('/emel/img/Agenda2.jpg'); background-repeat: no-repeat;)"); MapaWeb.document.write("</style>"); MapaWeb.document.write("<script>"); MapaWeb.document.write("</script>"); MapaWeb.document.write("</head>"); MapaWeb.document.write("<body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>"); MapaWeb.document.write("<form><input type='button' value='Prueba' onClick='javascript:opener.cargaSeccion();window.close();'>"); MapaWeb.document.write("</form></body></html>"); MapaWeb.focus(); }
Gracias de anticipado ^^