S – Stampare con Javascript

DOMANDA

è possibile attivare un pulsante, dietro un’immagine, con la funzione di stampare, con JavaScript?

RISPOSTA

Sì, è sufficiente inserire la riga sottostante tra tag:
img src=”icona.gif” onclick=”window.print()”

Lascia un Commento

Fill in your details below or click an icon to log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Log Out / Modifica )

Foto Twitter

You are commenting using your Twitter account. Log Out / Modifica )

Foto di Facebook

You are commenting using your Facebook account. Log Out / Modifica )

Connecting to %s

Iscriviti

Get every new post delivered to your Inbox.