Why does this work in all browsers except IE??

Posted on 2012-08-25
Last Modified: 2012-08-25
I have this popup script that works great in Firefox and Safari but doesn't work in Internet explorer which I really need it to work in! Any ideas how to make it work in IE?

<script language="javascript" type="text/javascript">
     Author: Eric King
     This script is free to use as long as this info is left in
     Featured on Dynamic Drive script library (
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
// -->

Open in new window

onclick="NewWindow(this.href,'Rate this pic!','820','800','no','center');return false" onfocus="this.blur()

Open in new window

Question by:jonofat
    LVL 58

    Expert Comment

    IE doesn't allow for a name to be passed as an argument in a popup and you'll notice even in FF there is no window title, so change it to '' (two apostrophes)

    Author Comment

    Thanks for the response. Not sure where to change to two apostrophes? "
    LVL 58

    Accepted Solution



    Author Comment

    Awesome, thanks!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: HTML5 for Beginning Beginners

    Are you looking for an efficient introduction to HTML5? Have you tried other HTML5 courses and found them too complex? Do you need just the basics of HTML5 to use with Wordpress or other content management system? If you said yes to any of these questions, this course is for you.

    In my daily work (mainly using, I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
    JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now