|
|
||||||
How to create pop-up windows using JavaScriptPop-up windows are created using JavaScript and display on a webpage after a hyperlink is clicked. They have a variety of uses including displaying full sized photographs, definitions, and advertising. This article explains how to create a pop-up window and control various aspects, including its size, and whether or not toolbars are displayed. If you only want a hyperlink to appear in a new window, simply use the As you're about to see in this article, implementing pop-up windows into a webpage is very easy. Even if you are new to Web development, you are more than likely to have them set up without any difficulty in next to no time. To begin, open or create a new webpage in the BestAddress HTML Editor or Aurora Web Editor, then insert the following code just between the
It is now just a matter of changing the code you just pasted as follows: Replace The above code creates a JavaScript function called
You can also use the If you want the pop-up window to appear when a button (as defined by the You can create additional pop-up windows by repeating the steps above. However, you will need to differentiate between each JavaScript function. To do this, simply rename each function as you create it, such as "
|
||||||
![]()
A Multimedia Australia website.
Copyright © 2001 - 2010 Multimedia Australia Pty. Ltd.
Australian Company Number 096 830 394. All rights reserved.
ABN 78 096 830 394
Terms of use. Disclaimer. Privacy Statement.