POP UP CODE !!!
- Started
- Last post
- 8 Responses
- cndtn
Anyone know how to make a text link or image link that pops up more than one window, like multiple small windows off of one link???
I know it can be done just not sure how to add another window in the script like within the markup if you seperate it by semicolon or what???
- ********0
- ********0
what if on the first window that pops up , you add a script to open another one up on load and so on ...
- Hello-Sexy0
write a function that will handle the popup(s).
on your link
a href="#" onclick="openWindows()
in your openWindows function
var window1 = window.open(src,name,props)
var window2 = window.open(src,name,props)
if you use the auto open/popup, most browsers will block em. this way its on a click event and most should allow it.
- cndtn0
Cool I'll try that HS, I actually have the javascrit for multiple pop ups, it's just onLoad and not attached to a button ...
- radar0
don't post that link when your done.
- cndtn0
There used to be this site where you click one link and like 5 image windows would pop up in succession on top of each other and they were all scripted to be slightly offset so they overlap ... it was simple but I lost the code.
It's easy to have a single button with a single pop up, but in the parenthesis of the markup how would you add the next instance do you seperate with a semi-colon or comma that's where it's confusing.
It has to be easy like, here's a single text/image link that pops up one window and here's a single text/image link that pops up say ... three windows at the same time.
- cndtn0
So how do you add to this code right here so that it's the same link but it's 2 windows instead of one, each window it's own deal different size etc ...
Pop-up Window Link
- cndtn0
So how do you add to this code right here so that it's the same link but it's 2 windows instead of one, each window it's own deal different size etc ...
A HREF="newWindowURL" onClick="window.open('newWindowU... false">Pop-up Window Link