E
Emmy
Hi,
I know nothing of javascript but I have found some lines to add a
print button in one of my pages. They work fine but they open the same
page in a new window before opening the printer window.
What am I doing wrong ?
I don't want the page with the button to be opened again.
Here is the code.If someone could help me, thanks in advance !
Emmy
---------------------------------------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<base target="principal">
<title>Breve descripción</title>
</head>
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0"
bgcolor="#CCCCCC" text="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF"
alink="#FFFFFF">
<div align="center">
<center>
<table border="0" cellpadding="20" cellspacing="0">
<tr>
<td>
</center>
<a href="#" onClick="window.print()"><img
src="images/varios/imprimir2.gif" width="32" height="32" border="0"
alt="imprimir esta pagina"></a></td>
</table>
</div>
</body>
</html>
I know nothing of javascript but I have found some lines to add a
print button in one of my pages. They work fine but they open the same
page in a new window before opening the printer window.
What am I doing wrong ?
I don't want the page with the button to be opened again.
Here is the code.If someone could help me, thanks in advance !
Emmy
---------------------------------------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<base target="principal">
<title>Breve descripción</title>
</head>
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0"
bgcolor="#CCCCCC" text="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF"
alink="#FFFFFF">
<div align="center">
<center>
<table border="0" cellpadding="20" cellspacing="0">
<tr>
<td>
</center>
<a href="#" onClick="window.print()"><img
src="images/varios/imprimir2.gif" width="32" height="32" border="0"
alt="imprimir esta pagina"></a></td>
</table>
</div>
</body>
</html>