lynxus Posted May 27, 2009 Share Posted May 27, 2009 Hi , Im writing and application where people will want to have a few small popups open ( each one has a new chat session in it ) Currently im just using the window.open function. However, if i click on another link that uses that function it doesnt open a new window. It uses the one thats already open.. <script type="text/javascript"> function openSupport(id) { window.open("http://Blaaablaablaa.com/blaa.php?id="+id ,"IMsupporting","menubar=0,resizable=0,width=450,height=250"); } </script> <p><a href="javascript:openSupport('1234567890');">CLICK HERE</a></p> <p><a href="javascript:openSupport('123456789');">CLICK HERE</a></p> How would i get it so if both links were clicked, there would now be 2 popup windows. Thanks for looking. -G Quote Link to comment https://forums.phpfreaks.com/topic/159828-solved-open-new-popup-windows-for-private-messages/ Share on other sites More sharing options...
lynxus Posted May 28, 2009 Author Share Posted May 28, 2009 Bump ? Surely there must be a way to open up more than one popup window? if someone clicked, Panel1 and Panel2 buttons, It would be aces to have 2 popup panels. instead of one popup window that changes to whatever else is clicked. Id just like to pint out this isnt used as spam, Its so the operator on my controlpanel page can open more than one "chat" session. Currently i cant see how to do this as firefox seems to open any new windows in the orginal window, Thus loosing what was in it and now being replaced with the new content.. Very annoying! -G Quote Link to comment https://forums.phpfreaks.com/topic/159828-solved-open-new-popup-windows-for-private-messages/#findComment-843988 Share on other sites More sharing options...
Ken2k7 Posted May 28, 2009 Share Posted May 28, 2009 Give each window a different name. You're naming them all IMsupporting. Quote Link to comment https://forums.phpfreaks.com/topic/159828-solved-open-new-popup-windows-for-private-messages/#findComment-844152 Share on other sites More sharing options...
lynxus Posted May 28, 2009 Author Share Posted May 28, 2009 Ah sweet, Did not think of that! thanks very much. -G Quote Link to comment https://forums.phpfreaks.com/topic/159828-solved-open-new-popup-windows-for-private-messages/#findComment-844157 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.