tengo un script que me funciona muy bien en firefox, pero en explorer me maraca un error en la linea inicial que es esta
Código HTML:
<script language="javascript" type="text/javascript">
Código HTML:
<script language="javascript" type="text/javascript"> function mostrar() { var cliente_nombre =document.getElementById("cliente_nombre"); var cliente_domicilio =document.getElementById("cliente_domicilio"); var cliente_cp =document.getElementById("cliente_cp"); var cliente_pais =document.getElementById("cliente_pais"); var cliente_ciudad =document.getElementById("cliente_ciudad"); var cliente_telefono =document.getElementById("cliente_telefono"); var cliente_email =document.getElementById("cliente_email"); var orden_fotografo =document.getElementById("orden_fotografo"); var orden_venta =document.getElementById("orden_venta"); var orden_lugar =document.getElementById("orden_lugar"); var orden_producto =document.getElementById("orden_producto"); var orden_tamano =document.getElementById("orden_tamano"); var orden_envio =document.getElementById("orden_envio"); var orden_archivos =document.getElementById("orden_archivos"); var orden_notas =document.getElementById("orden_notas"); var orden_fecha = document.getElementById("orden_fecha"); var generator=window.open('','name','height=400,width=500'); generator.document.write('<html><head><title>Print Order</title>'); generator.document.write('<link rel="stylesheet" href="style.css">'); generator.document.write('</head><body>'); generator.document.write('<center><img src="Adventure-Photos.jpg" alt="Adventure Photos" width="255" height="200" /></center>'); generator.document.write('<div align="left" id="photostyle"><fieldset id="order-information"><table border="0" cellspacing="5" cellpadding="0">'); generator.document.write('<tr><td><h3>Customer Information</h3></td>'); generator.document.write('<td><h3>Order Information</h3></td></tr>'); generator.document.write('<tr><td><div class="required field"><label for="Name"><span><b>Name: </b></span></br>'+cliente_nombre.value+'</label></div>'); generator.document.write('<div class="required field"><label for="Address"><span><b>Address: </b></span></br>'+cliente_domicilio.value+'</label></div>'); generator.document.write('<div class="required field"><label for="Postal Code"><span><b>Postal Code: </b></span></br>'+cliente_cp.value+'</label></div>'); generator.document.write('<div class="required field"><label for="Country"><span><b>Country: </b></span></br>'+cliente_pais.value+'</label></div>'); generator.document.write('<div class="required field"><label for="City"><span><b>City: </b></span></br>'+cliente_ciudad.value+'</label></div>'); generator.document.write('<div class="required field"><label for="Phone Number"><span><b>Phone Number: </b></span></br>'+cliente_telefono.value+'</label></div>'); generator.document.write('<div class="required field"><label for="Email"><span><b>Email: </b></span></br>'+cliente_email.value+'</label></div></td>'); generator.document.write('<td><div class="required field"><label for="Photographer"><span><b>Photographer: </b></span></br>'+orden_fotografo.value+'</label></div>'); generator.document.write('<div class="required field"><label for="Sales Person"><span><b>Sales Person: </b></span></br>'+orden_venta.value+'</label></div>'); generator.document.write('<div class="required field"><label for="Location"><span><b>Hotel: </b></span></br>'+orden_lugar.value+'</label></div>'); generator.document.write('<div class="required field"><label for="Product"><span><b>Product: </b></span></br>'+orden_producto.value+'</label></div>'); generator.document.write('<div class="required field"><label for="Size"><span><b>Size: </b></span></br>'+orden_tamano.value+'</label></div>'); generator.document.write('<div class="required field"><label for="Shipping"><span><b>Shipping & Handling: </b></span></br>'+orden_envio.value+'</label></div>'); generator.document.write('<div class="required field"><label for="File Name"><span><b>File Name: </b></span></br>'+orden_archivos.value+'</label></div>'); generator.document.write('<div class="required field"><label for="Notes"><span><b>Notes: </b></span></br>'+orden_notas.value+'</label></div></td></tr></table></fieldset></div>'); generator.document.write('</body></html>'); } </script>