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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Netscape / JavaScript print problems

Status
Not open for further replies.

DonP

IS-IT--Management
Jul 20, 2000
684
US
I have a little JavaScript on my site that seems to be causing a "print frame" problem in Netscape: it gives a "There are no pages to print" error. I don't want to disable the script or to make it not work in Netscape with a browser detector so can anyone help figure out what's wrong?

[tt] function getgoing(){
top.location=" }
if (top.frames.length==0){
document.write(&quot;<CENTER><B>This page is part of a frameset. You will be redirected to our main page in 10 seconds so you can use our navigation, or click <A HREF=' to go now.</B></CENTER><P>&quot;);
setTimeout('getgoing()',00010);
}[/tt]

Even a very simplified version causes the same problem:

[tt]if (top == self) self.location.href = &quot;[/tt]
Don
don@pc-homepage.com
Experienced in HTML, Perl, VBScript, PWS, IIS and Apache. Run OS/2 Warp 4, BeOS v5 and Windows NT (only when I have to!)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top