SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Web Enthusiast
    Join Date
    Jul 2000
    Location
    Western Massachusetts, USA
    Posts
    1,389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Popup works in Firefox2 but not in IE6

    The following JavaScript works in Firefox 2, but not in IE6. Is this a known bug in IE? The page validates in Firefox, but shows some unknown "Error on page" in IE. Please advise

    HTML Code:
    <script language="javascript" type="text/javascript">
        <!--
            var newwindow;
            function showinterview(url, name)
            {
                newwindow=window.open(url,name,'height=500,width=550,left=500,top=350,resizable=yes,scrollbars=yes');
                if (window.focus) {newwindow.focus()}
            }
        // -->
    </script>
    
    <a href="javascript:showinterview('/article/381/','ytt-interview-meghan');"><img src="/uploads/images/896722366_YTT_Meghan_qt.jpg" alt="Meghan Miller YTT Interview" hspace="20" vspace="20" border="0" align="right" /></a>
    Last edited by paulcj2; Feb 1, 2007 at 09:58.
    Paul C.
    ClickBasics
    http://www.clickbasics.com

  2. #2
    SitePoint Guru
    Join Date
    Sep 2006
    Posts
    731
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by paulcj2 View Post
    The following JavaScript works in Firefox 2, but not in IE6. Is this a known bug in IE? The page validates in Firefox, but shows some unknown "Error on page" in IE. Please advise
    From memory, I believe that I.E. does not accept hyphens in window titles.
    If you cllick on the yellow triangle, I.E. it will display some sort of (often inadequate) explanation of the error.
    You can lose the <!-- //--> comments, they are obsolete, and the language attribute is deprecated.
    Tab-indentation is a crime against humanity.

  3. #3
    Web Enthusiast
    Join Date
    Jul 2000
    Location
    Western Massachusetts, USA
    Posts
    1,389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Logic Ali,

    Changing the hyphens to underbars did the trick.

    Paul C.
    Paul C.
    ClickBasics
    http://www.clickbasics.com


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •