Object.prototype error on ie6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tader
    New Member
    • Sep 2007
    • 43

    Object.prototype error on ie6

    Hi,
    my problem is that Object.prototyp e don't work in ie6 my function are
    [CODE=javascript]
    Object.prototyp e.hide = function() { this.style.disp lay = "none"; }
    Object.prototyp e.show = function() { this.style.disp lay = "block"; }
    [/CODE]
    what to do that it would work in ie6
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Why extend Object.prototyp e - see Object.prototyp e is verboten. Add these to the particular objects instead.

    Comment

    Working...