|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Multiple popups
i would like to make a specific page which automatically opens several windows at once. i know that there's a javascript option for this somewhere, but i've never been able to get a decent explanation of it or how to have it open multiple windows.
what would also work is having one link that opens several windows without the redirection. help! |
|
#2
|
|||
|
|||
|
RE: Multiple popups
you would need to use a javascript function that uses several window.open() calls. This function could be used in either a page onLoad event or as an onClick event of a link.
here is the function Code:
<script type="text/javascript">
<!--
function openmany(a,b){
window.open(a,'test');
window.open(b,'test2');
}
// -->
</script>
here are various ways of calling the function from a link <a href="#" onclick="openmany('http://www.codewalkers.com','http://www.yahoo.com')">open two windows</a> from a page onLoad event in the body tag (this will open the windows when the page loads <body onLoad=="openmany('http://www.codewalkers.com','http://www.yahoo.com')" > you could expand the function to open as many windows as you wanted. The window.open() call has parameters that allow you to specify the window height and width as well as how the window appears. Search the net for more specific examples. |
|
#3
|
|||
|
|||
|
RE: Multiple popups
thank you!!
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Multiple popups |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|