Is it possible to print a frame by clicking a button in a pop-up? (JAVASCRIPT)

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Feb 2005
Posts: 92
Reputation: NuGG is an unknown quantity at this point 
Solved Threads: 1
NuGG's Avatar
NuGG NuGG is offline Offline
Junior Poster in Training

Is it possible to print a frame by clicking a button in a pop-up? (JAVASCRIPT)

 
0
  #1
Oct 25th, 2006
I want to print a html file by clicking on a hyperlink/button in a small popup window. I already have the popup that is not the problem, i was just wondering if this script can be modified to print the main window from the popup.

JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <!-- Begin
  2. function printWindow() {
  3. bV = parseInt(navigator.appVersion);
  4. if (bV >= 4) window.print();
  5. }
  6. // End -->

Thank you for your time,

NuGG
Last edited by NuGG; Oct 25th, 2006 at 1:29 pm.
Pubonwheels - Mobile Bar Services for the South West of England.
The Kings Head Inn - The Kings Head, Underhill, Coleford, Somerset, UK.
South West Ravers - Going out to all you jungle drum and bass ravers.
UFB Live Radio - Keep It Locked.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC