Skip to content
ExamplesOpen editor ↗

bopaSetshwantshoSaHTML

→ createImg()

Creates an HTML image.

bopaSetshwantshoSaHTML(URL, tlhaloso, [CORS], [faSeTlile])

Returns a native element wrapper. Use the receiver helpers to read or update it. Creates a page image, not a canvas image or canvas image. External image hosts are allowed; pixel access still follows browser CORS rules.

NameTypeDescription
URL`mokwaloRequest`
tlhalosomokwaloAlternative text.
CORS (optional)`mokwalotiro`
faSeTlile (optional)tiroCallback after loading; receives the element wrapper.
Creates an HTML image.
tiro setaLoeto() {
  tlosaKanefase();
  bopaSetshwantshoSaHTML("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='60'%3E%3Crect width='100' height='60' fill='teal'/%3E%3C/svg%3E", "Khutlonne e pududu");
}

bopaTemana, dirisaMoGo