By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,932 Members | 1,511 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,932 IT Pros & Developers. It's quick & easy.

window opening problem with my script

P: 1
Ok, so I got this script to open a certain perfect on mozilla, but doesnt on IE:

<a href="URL" onclick="'URL', 'NAME OF WINDOW', 'width=520,height=370,scrollbars=no,resizable=no,t oolbar=no,directories=no,location=no,menubar=no,st atus=no,border=0,left=50,top=50'); return false">NAME OF LINK</a>

On mozilla it opens a window of the good size on the good place. But on IE it just goes to the url in the same window staying the same size.

Does anyone knows how to fix the problem so it'll work on both mozilla and IE (possibly even netscape, haven't tried it there)?
Jul 6 '06 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 1,754
Hi there,

the code below works fine in IE, Netscape and Mozzila.. i am using it in my site.. it works fine for me.. give it a try.. good luck my fren.. :)

head section..
Expand|Select|Wrap|Line Numbers
  1. <script language="JavaScript1.2" type="text/javascript">
  2. function openWindow(url) 
  3.     {
  4.     popupWin =,'new_page','toolbar=no,width=400,height=112,directories=no,status=no,scrollbars=no,resize=no,menubar=no')
  5.     }
  6. </script>
to invoke the popup window..
Expand|Select|Wrap|Line Numbers
  1. <a class=link-none href="javascript:openWindow_Email('../_include/inc_suggest_to_friend.asp?id=1&link=');" title="Suggest to a friend">Suggest to a friend</a>
Jul 6 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.