Feb 9, 2006 #1 leeym IS-IT--Management Joined Aug 20, 2004 Messages 338 Location US Is there a way to automatically open another browser window once the initial page is requested? For example, when http://www.domain.com/index.php is requested, http://www.domain.com/index2.php opens in another window. Thanks
Is there a way to automatically open another browser window once the initial page is requested? For example, when http://www.domain.com/index.php is requested, http://www.domain.com/index2.php opens in another window. Thanks
Feb 9, 2006 #2 BillyRayPreachersSon Programmer Joined Dec 8, 2003 Messages 17,047 Location GB Code: <body onload="window.open('[URL unfurl="true"]http://www.domain.com/index2.php',[/URL] '', '');"> Hope this helps, Dan [tt]Dan's Page [blue]@[/blue] Code Couch http://www.codecouch.com/dan/[/tt] Upvote 0 Downvote
Code: <body onload="window.open('[URL unfurl="true"]http://www.domain.com/index2.php',[/URL] '', '');"> Hope this helps, Dan [tt]Dan's Page [blue]@[/blue] Code Couch http://www.codecouch.com/dan/[/tt]
Feb 9, 2006 Thread starter #3 leeym IS-IT--Management Joined Aug 20, 2004 Messages 338 Location US Good stuff. Now if I want to specific window dimensions without any toolbars, how would I do that. Thanks so much Upvote 0 Downvote
Good stuff. Now if I want to specific window dimensions without any toolbars, how would I do that. Thanks so much
Feb 9, 2006 #4 BillyRayPreachersSon Programmer Joined Dec 8, 2003 Messages 17,047 Location GB Those are thigs you can specify in the third parameter. Try this: Code: window.open('[URL unfurl="true"]http://www.domain.com/index2.php',[/URL] '', 'width=500,height=300'); I'm sure you can find a good online reference to the window.open method for a complete list of parameters using Google. Dan [tt]Dan's Page [blue]@[/blue] Code Couch http://www.codecouch.com/dan/[/tt] Upvote 0 Downvote
Those are thigs you can specify in the third parameter. Try this: Code: window.open('[URL unfurl="true"]http://www.domain.com/index2.php',[/URL] '', 'width=500,height=300'); I'm sure you can find a good online reference to the window.open method for a complete list of parameters using Google. Dan [tt]Dan's Page [blue]@[/blue] Code Couch http://www.codecouch.com/dan/[/tt]