| function changeToSubmit(id) | Change HTML Element to Submit Button |
|---|---|
| OK, change plain button into Submit button | now a submit button |
| Error, change a-table into a Submit button |
a-table cannot be a Submit button
|
a_div = document.querySelector('div')
div_type = type_czech.typeFinal(a_div) //HTMLDivElement
HTML elements can also be queried for their prototypes chain.
a_div = document.querySelector('div')
div_protos=type_czech.typeProtos(a_div)//["HTMLDivElement","HTMLElement
And finally, HTML elements can also be asked their object type.
a_div = document.querySelector('div')
isa_HTMLElem = type_czech.typeIsA(a_div, 'HTMLElement') // true
| function alterImgHref(id, addr) | Alter Image or Href Address |
|---|---|
| OK, alter a Link's Address from cnn.com to xe.com | was CNN.com, now XE.com |
| OK, alter Image's Address from BEFORE to AFTER |
|
|
Error, alter a-div's Address
|
a-div is a div
|
| Error, alter a-picture's Address to a # Local Anchor |
|