Manipulating attributes

Getting

      div.getAttribute("align");
    
      svgImg.getAttributeNS("http://www.w3.org/1999/xlink", "href");
    

Removing

      div.removeAttribute("align");
    
      svgImg.removeAttributeNS("http://www.w3.org/1999/xlink", "href");
    

Setting

      div.setAttribute("align", "center");
    
      svgImg.setAttributeNS("http://www.w3.org/1999/xlink",
                            "href", "http://web.mit.edu/img/BackImage.jpg");