PDA

View Full Version : No window.open in IE


acslater323
06-26-2006, 02:56 AM
Anyone know why I don't get a popup window in IE here but I do in all other browsers?

http://www.kcfitmax.com/

under "Fitness Tip of the week" click on "previous tip" .. it should open a little window that shows you the last tip.

Works in FF, Safari, etc...

_Aerospace_Eng_
06-26-2006, 03:09 AM
Hmm you really shouldn't use # for the href on your links that open new windows. Try this
<a href="archive.php?tip_id=18" target="_blank" onclick="window.open(this.href,'Tip Archive','width=400,height=200');return false">Previous Tip</a>
I advise you to put your other popup windows in this format as they will still be accessible to users with JS disabled. Return false is needed so the link doesn't follow the href. Your may problem though is you have to change Tip Archive to TipArchive. IE is expecting a name so it can't have the space in it.

acslater323
06-26-2006, 10:29 AM
Thanks for the tip. I knew that was kind of a shoddy way to do it. Plus, users with popup blockers would probably lose the feature, correct?