0
Opening multiple window from a link
If you're looking for a JavaScript code that will enable your visitors to open a customized pop-window from a link, this JavaScript tip may be what you're looking for.
You can open multiple customized pop-windows within your web page that are opened via links. This JavaScript code provides a great way to display tips, instructions or whatever you'd like.
Examples:
Place the following code between your HEAD tags:
Carefully edit the text indicated in red to suit your needs.
For each new window you'd like to open with a link, you must add a new function to the JavaScript like this:
And, create your links with the same name as the function like this:
You can open multiple customized pop-windows within your web page that are opened via links. This JavaScript code provides a great way to display tips, instructions or whatever you'd like.
Examples:
Place the following code between your HEAD tags:
< SCRIPT language="JavaScript"> < !-- Script courtesy of http://www.web-source.net - Your Guide to Professional Web Site Design and Development function open1() { var open1 = window.open('http://www.domain.com','','scrollbars=yes,height=600,width=800,resizable=yes'); } function open2() { var open2 = window.open('http://www.domain.com','','scrollbars=yes,height=600,width=800,resizable=yes'); } function open3() { var open3 = window.open('http://www.domain.com','','scrollbars=yes,height=600,width=800,resizable=yes'); } // --> < /SCRIPT> |
For each new window you'd like to open with a link, you must add a new function to the JavaScript like this:
function open4() { var open4 = window.open('http://www.domain.com','','scrollbars=yes,height=600,width=800,resizable=yes'); } |
And, create your links with the same name as the function like this:
<A href="javascript:open1()">Click Here<A href="javascript:open2()">Click Here<A href="javascript:open3()">Click Here</td> |
Subscribe to:
Post Comments (Atom)
0 Responses to “Opening multiple window from a link”
Write your valuable comments