XM Magdalena 3D print, GGeorgy (3D)
LC #42 Pipers Alley

View Full Version : Gift : Javascript disappearing on printing button

02-04-2004, 04:22 PM

Obviously interesting to delete a printing button on a page than will be printed... Check this on my resume at http://ndhaussy.free.fr

<!-- Disappears on printing --->
<input type="submit" value="Print" onClick="this.parentNode.removeChild(this); window.print(); ">


Ian Jones
02-05-2004, 12:00 AM
Can you explain that a little more? It's just that I think I know what it does but I'm not game to test it... or start printing.

02-05-2004, 09:42 AM
To use on HTML page design. It's just a simple task. It deletes this print button from the page on printing. So the button won't be on the printed sheet of paper. You can test it on my resume on my site.

Is that clear enough? :)

Ian Jones
02-05-2004, 02:00 PM
Hey you can't blame me for not knowing what 'Imprimer' meant... nice trick!

02-05-2004, 05:59 PM
Oh sorry. I won't blame you. I forgot I've typed it in french :) I hope this trick will be useful to you.


CGTalk Moderation
01-17-2006, 09:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.