javascript tutorialsOpening a new window
Pop up windows explained
Sometimes you will want to create a link that opens in a new, smaller window. This provides more information to the guest, without taking them away from the currently viewed page. Using JavaScript, you can control the appearance and behavior of your new window. To Create a new window link -
<a href="javascript:newWindow('http://www.google.com');">Open New Window</a>
<script language="Javascript" type="text/Javascript"> function newWindow(url) { Your link calls the fucntion newWindow (hightlighted in red.) The window.open command defines its parameters (details) in paretheses. There are three parameters contained in double quotes:
What do the parameter names mean? The image below illustrates what each parameter correspond to the browser window elements. Click the parameter names to see the location os each element.
More about pop ups:
|
||||||||||
Custom Search
Some developers offer ready made scripts that can be modified to work in your website. Some of these scripts are free and some require a small fee, but they are well worth it:
|
||||||||||