name
hasAttribute ( )
import prohtml.*;

StandAloneElement standAlone;

void setup(){
  standAlone = new StandAloneElement("img",null);
  standAlone.addAttribute("scr","images/getAttribute");
  println(standAlone.hasAttribute("scr"));
}
description
Use this method to see if an element has a given attribute.
syntax
hasAttribute(key);
parameters
key,
attribute you want to check
returns
boolean, true if the element has the attribute
usage
Web & Application
related