RE: Default Size browser

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Georg,
I use a javascript routine to open a new browser window.  This version hangs
on to the pointer to the new window and does a speculative close, so that
only one pop-up window is presented, but that's not always desirable:

<script language='javascript'>

var win;	// Popup window.

function closeWindow() {
	if (win && win.open && !win.closed) {
		win.close();
	}
}

function openWindow(url, width, height) {

	var displaywidth = width; // screen.availWidth;
	var displayheight = height; //screen.availHeight;

	var parms = ('height='+displayheight+',width='+displaywidth
			+ ',resizable=yes,status=no,toolbar=no,'
			+ 'menubar=no,location=no,scrollbars=yes, '
			+ 'screenx=200, screeny=100,'
			+ 'left=200,top=100');
	closeWindow();
	win=window.open(url, null, parms);
}

</script>

In your HTML you would invoke the openWindow method something like the
following:

<a href="#" onclick="openWindow('./nextPage.php', 800, 1200);"><image
id="myImage" src='./images/myImage.jpg' border='0'></a>

Hope that helps.
Brian

-----Original Message-----
From: roth_georg [mailto:roth_georg@xxxxxxxxx] 
Sent: 23 December 2005 21:01
To: php-objects@xxxxxxxxxxxxxxx
Subject:  Default Size browser

Hi guys!!


I'm fighting with a little problem. 

How do I define the size of the browser? Eg if I open my page the browser
shoul be 800 px in width and 1200 px in length!

How do I solve that problem?

Thanks!!

Georg







------------------------ Yahoo! Groups Sponsor --------------------~--> Get
Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

PHP Data object relational mapping generator - http://www.meta-language.net/
Yahoo! Groups Links



 



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

PHP Data object relational mapping generator - http://www.meta-language.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux