Jump to content


Photo

Sizable Popup window, IE problems


  • Please log in to reply
3 replies to this topic

#1 mattachoo

mattachoo
  • Members
  • PipPip
  • Member
  • 21 posts

Posted 27 July 2006 - 04:16 AM

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.

<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>

Help would be appreciated, thanks!

#2 bltesar

bltesar
  • Members
  • PipPipPip
  • Advanced Member
  • 109 posts

Posted 28 July 2006 - 12:37 PM

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.

#3 mattachoo

mattachoo
  • Members
  • PipPip
  • Member
  • 21 posts

Posted 30 July 2006 - 02:44 AM

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!

#4 bltesar

bltesar
  • Members
  • PipPipPip
  • Advanced Member
  • 109 posts

Posted 30 July 2006 - 03:05 AM

Yup, the code was fine all along!  Browser compatibility issues are really a pain.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users