View Full Version : window popup close window.

08-23-2002, 06:49 PM
I probably should have figured out a better statement for the subject, but anyway....

I have had this script in the past and I don't where it is and can't find it here again...

I want to have a text link that will open another window onclick, but also close the window that had the text link on it.

Preferably opening the new window in full view.


08-23-2002, 07:36 PM
function doLink(nUrl) {
var w = screen.width
var h = screen.height;
var features = 'top=0, left=0, width='+w+', height='+h+', scrollbars, location, status, resizable, menubar, toolbar';

<a href="javascript:doLink('page.htm');">Click here</a>

08-23-2002, 09:00 PM
Ok, the script works perfect in IE. But it has a slight problem in NS. The window that appears is not the same size as the one in the IE browser. I have left the "width='+w+', height='+h+'" as shown with ni number specified. As well as I have specified a number with the same results. It gives me a fairly small size window. I have had the script in the head and in the body to test them seperately. Still same problem.


08-23-2002, 11:47 PM
Any suggesstions yet?