Click to See Complete Forum and Search --> : popup print problem


andrew1234
10-10-2003, 08:36 AM
on my popup I have a print button.

But for some weird reson whe i Press print (javascript:window.print())

It opens th print menu in IE6 but wont allow me me to press OK to print.

But if i go file print in the popup then it works

whats up with that.

Andrew

requestcode
10-10-2003, 08:44 AM
Could you post all of your code for the pop up? There might be something else that is causing the problem.

andrew1234
10-10-2003, 08:50 AM
Hi

The button to load the popup is
<a href="javascript:details('1.htm')" class="products">Click
to view more details</a>

wich links to a external javascript page to this function



function details(URL)
{
window.open(URL,"","height=410,width=540,resizable=0,scrollbars,menubar");
}



thanks

Andrew

requestcode
10-10-2003, 09:16 AM
I wonder if it is because you don't have a window name. Try changing your window.open to this:
window.open(URL,"winn"," height=410,width=540,resizable=0,scrollbars,menuba
r");

"winn" would be the name of the window. Also what does the document in the popup look like with the print button.

andrew1234
10-10-2003, 09:22 AM
I found the problem

I had this in thr body tag

onblur="self.focus()
thanks

Andrew