faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

21 of 133 people (16%) answered Yes
Recently 3 of 10 people (30%) answered Yes

Entry

how do i hide the url when the html document at the time of printing

Apr 5th, 2008 20:21
ha mo, Colin Fraser, Dipen Mistry,


If you are talking about supressing the file name that appears at the
bottom of the printed page. I am not sure that you can. 
However, if you are talking about having a print button on one page and
printing a different page try :
<frameset rows="100%,*">
<frame src="displayedpage.htm">
<frame src="printpage.htm">
</frameset>
Create two frames but one is hidden. 
In displayedpage.htm use:
<form>
 <input type="button" value="Print" onClick="parent.frames[1].print()">
</form>
This should work in later versions of most browsers, but probably wont
in v3.x or earlier of any of them.
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com