Window Size Snippets


09 November, 2013   

Use this snippet to determine the size of an open window. Can be used in many different situations, e.g., for setting the size of a div.

17 April, 2013   

In Firefox, Safari and Chrome, this script only works if the window was originally opened using Javascript (window.open function)

18 September, 2012   

Attempts to close the current window. You can use it for popups

Set the Border style of your main form to bsNone and then use System Parameters Info message to get the SPI_GETWORKAREA value then use Set Bounds to make your Window the correct size.

03 April, 2011   

If you're looking for a JavaScript code to enable you to create a first visit pop up window for your web site, you've come to the right place. Pop up windows can provide a great way to gain new subscribers to your publication and even increase your sales. However, they can also be very irritating to your visitors. For this reason, you may want...

Place the following JavaScript code into your HTML where you would like the button to appear:

22 August, 2011   

Here shown how to center an element on screen

30 August, 2011   

Calculates the total size of a MySQL database in KB/MB or GB...

26 November, 2018   

Cross-browser method for testing for pop-up blockers.

14 February, 2012   

Use this to size an array for your values

26 April, 2015   

Recursively determines the size of a directory

26 January, 2013   

jQuery code example to open link in a new window

This is a PHP Class that calculates the size, number of files & folders of a specific directory.

How to close child window when parent window is closed using JavaScript in asp.net application

Most today's web browsers like Firefox (Ctrl+D), Opera (Ctrl+T) and IE (Ctrl+D) provide a keyboard shortcuts to enable users bookmark their favorite pages. But if you want to provide your visitors with a "Bookmark this page" link they can click you may use the code below: It works in IE, FireFox and Opera. Clicking on the link prompts...

An example for Scripted Helper object plugin

19 January, 2012   

CSS code example how to Set the size of the font

08 November, 2012   

Pass the number of bytes and it automatically returns it in b,kb,mb,gb,tb or pb

13 December, 2011   

Chooses a pre-determined playlist from your iTunes library

08 December, 2012   

Full screen background image using pure CSS3.