...

View Full Version : How do I open a link from a pop-up in the same page at full size?



jen56johns
10-20-2003, 03:35 AM
And i want all the standard menus (toolbars) etc to be present. I'd prefer the code go in the target page, so that any time it opens it opens at full size.

Can anyone offer any suggestions? i can only find code that doesn't include the tool bars.

Thanks!

Jenni.

glenngv
10-20-2003, 04:32 AM
if the popup where the link is located already has no toolbars, you can't make them show when a new page is loaded in that window. You can only resize it.
You can put this code in the target page and call it onload:


function autoMax(){
top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum