Handle Window Snippets


05 December, 2012   

The function accept 3 parameters: the data, the csv delimeter (default is a comma) and the csv enclosure (default is a double quote).

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

18 September, 2013   

PHP example for listing directory contents

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

13 May, 2019   

It makes things draggable and with a specified handle optionally

22 August, 2011   

Here shown how to center an element on screen

26 November, 2018   

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

25 October, 2011   

A quick way to hide your program's title bar.

06 July, 2013   

Draws angled text on a canvas at position X,Y.

26 January, 2013   

jQuery code example to open link in a new window

06 November, 2013   

Example shows how to handle window closing events. This is a very basic event handling when you are working on a UI Application.

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.

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...

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...

24 April, 2014   

[UNIT] Im Spreading. I posted it as learning to defend yourself.

25 January, 2012   

Delphi Code example how to Cut, Copy and Paste

Scribble an applet of intermediate complexity, used as an example in the introductory chapter. Click and scribble in the window.

24 June, 2014   

For downloading very large files (10 meg or more), split the file into chunks when sending.