make a link open new popup window (every time)
Hi.
I have a link that needs to open a new popup window every time its clicked, including if the popup has already been opened. What I have already works fine in Firefox, but not Internet explorer. Here's what I have ...
In the head part of my page ...
- <script type="text/javascript" language="JavaScript" src="js/jquery.popupWindow.js"></script>
And in the body ...
- <script type="text/javascript">
- $(document).ready(function () {
- $("#dock").popupWindow({
- height:400,
- width:440,
- centerScreen:1,
- windowURL:"chat.php"
- });
- });
- </script>
And the div ...
- <div id="dock"></div>
The Idea is the user clicks the dock image, which opens a new popup window where the user can pick from their online friends to chat with and once they click on one of them, they should be able to open a new popup window and have as many windows open as they want, which is what this code does in Firefox, but I have to get it to do the same thing in Internet Explorer.
I've heard of jQuery being able to add new children, which might work if I can figure it out. Any help would be appreciated. Thanks.