Im trying to make a simple pop-up so that when someone visits my page it pops up another window to another link. If its possible I would like the window that pops-up to either minimize or goto the background. I know this is easy, but i searched and couldnt find just the simple code. Thanks
I'm not sure of the code, but you need to think of your audience's reaction to the pop up window. Think of things like..Is this going to be annoying..will it be of use. Things like that. If all it is is a link to another site. Put it somewhere on the page. That's all I hafta say bout that.
Although I agree with spdrcr, popups=bad. A couple of trips to a clip art page and you'll lose that desire for a pop-up.
An alternative is having a DIV that is initially hidden, checks for a cookie and becomes visible if needed. Provide a link to hide the div and you get the same effect without the negative associations that come with a pop-up.
Aepic
BTW set the z-index on your DIV to be higher than the rest of the page so that it doesn't effect the rest of your layout.
I agree with all of you, pop-ups are bad. I hate them, but it has come down to no choice, i had to put one up. My website is on a top50 list and I get a ton of hits but nobody votes. All of the other sites have the top50 list pop-up so they automatically get the votes, but I am missing all of these votes and keep dropping down the list. Ideally I would like to have the window either
a) pop-up in background
or
b) pop-up minimized in the task bar
When you call the pop-up window, set the alwaysLowered property to 1. This will cause it to float below all the other windows. I can't find this property in my Javascript book but it is ECMA-262 under window.open (properties).
Bookmarks