name
getAttribute ( )
import prohtml.*;

StandAloneElement standAlone;

void setup(){
  standAlone = new StandAloneElement("img",null);
  standAlone.addAttribute("scr","images/getAttribute");
  println(standAlone.getAttribute("scr"));
}
description
Use this method to get the value of a given attribute of an element.
syntax
getAttribute(key);
parameters
key
String, name of the attribute you want the value for
returns
String, the value of the attribute
usage
Web & Application
related