Forum Moderators: open

Message Too Old, No Replies

javascript:print

a javascript link to print the active frame is a problem with Opera 7

         

marcusbjorke

11:51 am on Oct 30, 2003 (gmt 0)

10+ Year Member



I run a site where we recently added a print link on every page. The link looks like this <a href="javascript:parent.frames.mainFrame.print()">

I first used only
<a href="javascript:print()">

and it also worked with most browser. I realize that it only works if you have Microsoft Windows versions for PC but that is what most of out customers have anyway. I have also noticed that there is a problem with certain browswers, for example Explorer 4 version but also with newer browser like Opera 7.01. I does work perfecly well with Mozilla-compatible browsers but why not with Opera. With Opera it first looks as if it would work, but when you choose print from the Operating system it prints the wrong frame although i specifically try to call the right frame. Has anyone found a workaroung or sollution to my problem.

Best regards
/marcus

DrDoc

5:15 pm on Oct 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to Webmaster World!

Have you tried using window.print() or even self.print()?