<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.d3xt3r01.tk//index.php?action=history&amp;feed=atom&amp;title=JavaScript_print_frame_button</id>
	<title>JavaScript print frame button - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.d3xt3r01.tk//index.php?action=history&amp;feed=atom&amp;title=JavaScript_print_frame_button"/>
	<link rel="alternate" type="text/html" href="https://wiki.d3xt3r01.tk//index.php?title=JavaScript_print_frame_button&amp;action=history"/>
	<updated>2026-05-05T14:30:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.d3xt3r01.tk//index.php?title=JavaScript_print_frame_button&amp;diff=22&amp;oldid=prev</id>
		<title>Admin: New page: ==Info== Let&#039;s say you have a page made with frames .. and you want to print one frame easily by pressing a button .. but you don&#039;t want that button showing up .. the idea is to put everyt...</title>
		<link rel="alternate" type="text/html" href="https://wiki.d3xt3r01.tk//index.php?title=JavaScript_print_frame_button&amp;diff=22&amp;oldid=prev"/>
		<updated>2009-06-25T19:55:12Z</updated>

		<summary type="html">&lt;p&gt;New page: ==Info== Let&amp;#039;s say you have a page made with frames .. and you want to print one frame easily by pressing a button .. but you don&amp;#039;t want that button showing up .. the idea is to put everyt...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Info==&lt;br /&gt;
Let&amp;#039;s say you have a page made with frames .. and you want to print one frame easily by pressing a button .. but you don&amp;#039;t want that button showing up .. the idea is to put everything inside a div .. and put the print button into another div in the main div .. so when you press that button .. you delete that div leaving the rest of the page without it ready for print out !&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
Assuming &amp;quot;pagina&amp;quot; is the name of the frame you want to print...&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
function myprint() {&lt;br /&gt;
	window.parent.pagina.focus();&lt;br /&gt;
        var d = document.getElementById(&amp;#039;myDiv&amp;#039;);&lt;br /&gt;
        var olddiv = document.getElementById(&amp;#039;myprint&amp;#039;);&lt;br /&gt;
        d.removeChild(olddiv);&lt;br /&gt;
	window.print();&lt;br /&gt;
	return false;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Remember to change the &amp;quot;pagina&amp;quot; word to the name of your frame name... Put the code below in the page of the frame you want to print out...&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;
function myprint() {&lt;br /&gt;
	window.parent.pagina.focus();&lt;br /&gt;
        var d = document.getElementById(&amp;#039;myDiv&amp;#039;);&lt;br /&gt;
        var olddiv = document.getElementById(&amp;#039;myprint&amp;#039;);&lt;br /&gt;
        d.removeChild(olddiv);&lt;br /&gt;
	window.print();&lt;br /&gt;
	return false;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Print test&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;javascript: myprint();&amp;quot;&amp;gt;PRINT&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
[[Category:JavaScript]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>