SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: resize window
-
Mar 22, 2007, 06:05 #1
- Join Date
- Mar 2005
- Posts
- 141
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
resize window
Is this possible.
I want a link on page1 to open a new window using
Code:<a href="#" onclick="window.open('page2.php','remote','height=380,width=550,location=no,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');return false;">link</a>
Code:<a href="page3.php" target="_self">link</a>
Code:<script>window.resizeTo(screen.width,screen.height)</script>
-
Mar 22, 2007, 07:10 #2
- Join Date
- Feb 2007
- Location
- Brooklyn, NY
- Posts
- 22
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Do you need page3 to be in a new window over the original opener? If not, your link in page2 could call a function that opens page 3 in the original opening window and closes the page2 window at the same time.
function closeWin()
{
self.close();
}
function refreshMain()
{
window.opener.location = "page3.php";
closeWin();
}
-
Mar 22, 2007, 14:59 #3
- Join Date
- Mar 2005
- Posts
- 141
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks for that. I don't really want page 3 to open in a new window but I suppose if a function closes page2 as page 3 opens ..that might do!
Bookmarks