mattachoo Posted July 27, 2006 Share Posted July 27, 2006 I have a image that needs to open a new window. I want this window to be automatically resized too. Now, here is the code I have. It works in Mozilla Firefox, but not IE.[code]<a href="mp3player.html" onClick="window.open('mp3player.html', 'musicplayer', 'toolbar=no, directories=no, location=no, status=no, menubar=no, resizable=no, scrollbars=no, width=315, height=145'); return false" title="Launch Music Player"><img src="images/launchmediaplayer.jpg" name="player" width="300" height="60" border="0" id="player" onMouseOver="this.src='images/launchmediaplayerALT.jpg';" onMouseOut="this.src='images/launchmediaplayer.jpg';" /></a>[/code]Help would be appreciated, thanks! Quote Link to comment Share on other sites More sharing options...
bltesar Posted July 28, 2006 Share Posted July 28, 2006 What do you mean by automatically resized, and what exactly does it do in Mozilla but not IE?I tried it in IE and it opens exactly as I expected. My Mozilla browser insists on opening links in tabs, so I couldn't see what that does. Quote Link to comment Share on other sites More sharing options...
mattachoo Posted July 30, 2006 Author Share Posted July 30, 2006 I want it to open in a new window, but instead of it being just a "_blank" link, I want it to be a popup, meaning I want it to be of a specific width and length, and with location bars and whatnot. The popup opens fine in Mozilla, but the window won't even open in IE. Maybe it is because of my norton internet security, who knows, but otherwise, you think my code is good?In mozilla, the window opens, it is resized, without a location bar and all that other jazz. IE, the link doesn't even work.Ain't that a bitch. It was my Norton Internet Security popup blocker. OK, thanks! Quote Link to comment Share on other sites More sharing options...
bltesar Posted July 30, 2006 Share Posted July 30, 2006 Yup, the code was fine all along! Browser compatibility issues are really a pain. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.