Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pop-Up Problems

Status
Not open for further replies.

TheConeHead

Programmer
Aug 14, 2002
2,106
US
I am popping a window via:
Code:
<body background="images/main_bg.gif" topmargin="111" bgcolor="#000000" onLoad="javascript:window.open('index2.html','','status=yes; height=580, width=600,left=200,top=50')">

and it seems some people are not getting the pop up window... they say they do not have a pop up blocker on... is there another way to do it so it will always work?

[conehead]
 
Try adding a second parameter. Also, get rid of the "javascript:" text. It's not necessary. Thirdly, use a comma, not a semicolon in your third parameter.

Code:
<body background="images/main_bg.gif" topmargin="111" bgcolor="#000000" onLoad="window.open('index2.html','my_win','status=yes,height=580, width=600,left=200,top=50')">

*cLFlaVA
----------------------------
Breaking the habit...
 
Have you considered why many people use pop up blockers?
They find messages floating around in front of a web page extremely annoying. Consider including the same information within the web page itself.
Keith
 
This will be an increasing problem with Windows XP SP2. One of the things it adds is a pop-up blocker. The IE blocker will block any scripted window opening. In other words if you use window.open on a button or link the page will not be blocked.

 
The pop-up is used in the design of the site - not to advertise anything....

hmmm ok - thanks pixl8r - guess I need to work around it...

[conehead]
 
Sorry TheConeHead, my comment wasn't a dig.
Just passing on feedback I get from my clients.
Keith
 
no problem... I hate pop-up advertising as well... with this site I am making the main window a background to the smaller main content window that is popped up....

[conehead]
 
check out this site - so you are saying that with the new SP2 - this would not pop?

[conehead]
 
Got a link? :)

Wow JT that almost looked like you knew what you were doing!
 
That should work ok because it is button initiated. The pop up for the "radio" (in high bandwidth) probably will not work because it is script initiated.

SP2 will allow the user to always trust popups from your site. The only problem with that is that you leave it to them to do it. :)

Excellent job on the Flash site!

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
I just got the main page, and nothing at all happened when I clicked on either button.
But then I browse with JavaScript disabled......
Be aware of that 10% of surfers, and consider making the site fully compatable by not relying on JavaScript. :)

Regards, Andy.
**************************************
My pathetic attempts at learning HTML can be laughed at here:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top