removeAttribute returns false

Discussion in 'JavaScript' started by Sleeping Troll, Jul 29, 2008.

  1. #1
    This line:
    ScrollOff=document.getElementById("Marquee"+Btn).removeAttribute("behaviour");
    alert(ScrollOff);
    Code (markup):
    Returns false, although setAttribute sets the attribute, it leaves the old attribute in place.
    What's up?
     
    Sleeping Troll, Jul 29, 2008 IP