PDA

View Full Version : popup window question


carweb
08-13-2003, 09:43 AM
I've got a little problem
i've got this link:
<a href=javascript:window.open("my_site.html","","toolbar=no,location=no,directories=no,status=no,menubar=no,resizeable=no,fullscreen=no,width=400,hei ght=500,top=100,left=200"); alt="my link">Click here</a>

when I click at this link the popupwindow opens,it isn't the problem, the problem is that in the orginal window a new site come up, it looks like that:

[object]

why?

then I've got another problem:
I've got another link who will open a new site in the orginal frame from the popup-window:

<a href=javascript:opener.parent.bigfr.location.href="../folder/document.html" alt="document">Document</a>

the problem here is:
when I click at the link a new document shows in the popup-window:
../folder/document.html

but the link works perfect except that

requestcode
08-13-2003, 01:01 PM
For your first problem try using the onClick even like this:
<a href='#' onClick='window.open("my_site.html","","toolbar=no,location=no,directories=no,status=no,menubar=no,resizeable=no,fullscreen=no,width=400,hei ght=500,top=100,left=200")' title='click here'>Click here</a>

Also the "alt" property will not work for text links. Use the "title" property. For your second problem try using the onClick event and see if that corrects the problem.