Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16
  1. #1
    Member
    Join Date
    May 2003
    Posts
    92
    Member #
    1526
    I always see this script in page's headers. Whats it actually do?
    <script language="JavaScript">
    <!--

    function SymError()
    {
    return true;
    }

    window.onerror = SymError;

    var SymRealWinOpen = window.open;

    function SymWinOpen(url, name, attributes)
    {
    return (new Object());
    }

    window.open = SymWinOpen;

    //-->
    </script>
    If there is no god, then who pops up the next Kleenex?

  2.  

  3. #2
    Senior Member
    Join Date
    Apr 2003
    Location
    Hamden Ct
    Posts
    103
    Member #
    1121
    I'm guessing it opens a window when there is an error?

  4. #3
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    If it does, it's written "beating around the bush"...
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  5. #4
    Member
    Join Date
    May 2003
    Posts
    92
    Member #
    1526
    well you guys should know what it means. i took that snipet from this forums source. take a look just under your stylesheet. i see this thing everywhere but dont know what it does.
    If there is no god, then who pops up the next Kleenex?

  6. #5
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    i think it might be part of the pop-up for a new PM perhaps? although i don't use it so i wouldn't know
    JR

  7. #6
    Senior Member Brak's Avatar
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    3,413
    Member #
    1217
    Liked
    2 times
    I'm fairly certain the first SymError stuff is just to supress any JS errors that may occur due to incompatability in browsers.
    Kyle Neath: Rockstar extraordinare
    The blog | The poetry site | The Spore site

  8. #7
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    on a second look, i don't think it is PM pop-up actually, its prob what brak said
    JR

  9. #8
    Senior Member splufdaddy's Avatar
    Join Date
    Feb 2003
    Location
    Boston, MA
    Posts
    4,488
    Member #
    735
    This is a javascript that Norton Internet Security is putting on pages you visit to kill popups for you. You can read about it here.

  10. #9
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Yeah, it's a popup killer. It replaces the window.open() method with its own custom function that returns a new empty Object(). As we all know, a Window is itself an Object, so most popups are fooled. Some, however will try to access the new window's properties and methods through the pointer that the window.open() method returns. When they try that on an empty object, they will return an error. So the script in nifty fashion replaces the default javascript error method with a function that returns "true", making the evil popup application think that everything went ok.

    Cool little script

  11. #10
    Senior Member james's Avatar
    Join Date
    May 2003
    Location
    Melbourne, AUSTRALIA
    Posts
    364
    Member #
    1352
    So what's the use of having this script? I guess if someone manages to get working html into their post it'll help circumvent damage they do? And if your host inserts popups in you pages, it'll stop that?
    James H
    Home Page · Mars Page · www.fihsf1.net (formerly www·fihs·net)


Page 1 of 2 1 2 LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 11:33 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com