myName – This is a unique name of a window. This text is displayed nowhere but is used to work with such windows; Window title – This is the title that is displayed at the top of an AJAX window; 500 – width (pixels, px); 200 – height (pixels, px); 'Here goes window content'- This is the content of the window. Basic HTML codes can be used. 'Click Me' - This represents the link of which will open the window.
Below is a more advanced AJAX window with features such as 'Maximize' and 'Minimize' buttons.
Below is the code for the AJAX window above. Place this code anywhere within the '' and '' tags:
The script for the advanced window is the same as the original except the following code has been added:
Number '0' - Stands for "No" Number '1' - Stands for "Yes" min – This is to display the 'minimize' button (we have '1' which means that the button is displayed/enabled); shadow – This adds shadow to the window; header – This is what displays the header (where the buttons 'minimize', 'maximize', 'close' and window title are located); max– This is to display the 'maximize' button (we have '1' which means that the button is displayed/enabled); resize – This allows users to change window size (we gave '0' therefore the size can't be changed)