name
getAttributes ( )
import prohtml.*;

StandAloneElement standAlone;

void setup(){
  standAlone = new StandAloneElement("img",null);
  standAlone.addAttribute("scr","images/getAttribute");
  standAlone.addAttribute("width","250");
  standAlone.addAttribute("height","20");

  Object[] attributes = standAlone.getAttributes();

  for(int i = 0;i<attributes.length;i++){
    println(attributes[i]);
  }
}
description
Use this method to get the keys of all available attributes of an element.
syntax
getAttributes();
returns
String[], Array with all attribute keys
usage
Web & Application
related