Tengo el siguiente código en html:
Código HTML:
<table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td> </td> <td> <div align="center"><img src="noticias/imagenes/pto.jpg" width="1" height="20"></div> </td> <td> </td> </tr> <tr> <td colspan="3" height="1"><img src="noticias/imagenes/pto.jpg" width="100%" height="1"></td> </tr> <tr> <td> </td> <td width="2%"> <div align="center"><img src="noticias/imagenes/pto.jpg" width="1" height="20"></div> </td> <td> </td> </tr> <tr> <td colspan="3" height="1"><img src="noticias/imagenes/pto.jpg" width="100%" height="1"></td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> </table>
Código:
Mi pregunta es: ¿Cómo lo puedo hacer en javascript para que me de el resultado de html que he escrito en un principio? document.write('el codigo html de antes')