Problems making a print button...please help !

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top