|
|
|
|
|
|
![]() |
![]() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
![]() |
|
|
|
|
|
|
|
|
Always wanted an easy way to open a new window at a specific size? Maybe to display a larger image of a thumbnail, maybe to have a small window of instructions? Here is an easy way to open a new window with JavaScript. You could use the "target" attribute; however, this attribute is deprecated and shouldn't be used. Unlike the target attribute, you can specify the width and height of the window you are opening using the following method.
Customize the Script for Your Site: • In the code above, you will see there is a URL defined as http://www.viper-host.com. Replace that URL with the address of the page or picture you would like to open. • You'll see width=200. Replace the "200" with the width size, in pixels, you would like your new window to be. • You'll also see heigh=200. Replace the "200" with the height size, in pixels, you would like your new window to be. • Last, replace "Open A New Window" with the text that you would like your visitors to click on in order to open the new window.
That's all there is to it! |
![]() ![]() |
|
|
![]() |
![]() |