Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print browser page action script 1

Status
Not open for further replies.

ssidetv

Technical User
Aug 30, 2001
57
GB
Greetings,

I am using a Flash nav bar in a CD presentation constructed in HTML. I would like to have a PRINT button so clients can print out each browser page as desired.

How do I invoke the print command? (I tried the print action script but it only printed the clip, not the page).

I have also successfully used

getURL("javascript:window.close()\r\n");

to have my QUIT button close the browser (it's running in kiosk mode so the menu bar is absent).

Does anyone know if I can insert a parameter to prevent the alert popping up, asking if they really do wantto close the window?

Thank you.

Nick Peters

 
For your second question, yes it can be done! But it's a little more complicated than just adding a parameter. I have somewhere in my files, will try to post an example over the weekend. Regards,

oldman3.gif
 
I use a hta file to open a browser in kiosk and then close the hta, works well,

after closing the hta the browser doesn't care if you close it or not.

check out


select to open the hta file not save it.

if you need the files, just let me know


as far as printing the browser window

try geturl(javascript:window.print) or self.print

on a onPress action jef
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top