SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2008
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    self.focus() and ie8

    hi,

    i have problem with this code in ie8

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <title>Untitled 1</title>
    <script type="text/javascript">
    
    <!--
    var opened;
    function myPopup()
    {
    
    	window.open("http://www.google.com/", "mynew", "status = 1");
    	self.focus();
    }
    //-->
    </script>
    </head>
    
    <body onclick="myPopup()">
    dfdf
    </body>
    </html>
    this popup working with all browsers except ie8

    any help ?

  2. #2
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Looks like a security thing: http://social.technet.microsoft.com/...1-ef19c94e34b6

    see the last comment.

    In any case, popunders are extremely antisocial so it's not really a bad thing that this fails.

  3. #3
    SitePoint Guru
    Join Date
    Apr 2006
    Posts
    802
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good for Microsoft...


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
  •