General
IT Notes → Javascript @ December 22, 2020
Access Elements:
- GetElementBy.
- GetElementById(Id).
- GetElementsByName(Name).
- GetElementsByTagName(TagName) TagName = * represents all elements. Also use lowercase.
- DomObject.childNodes() gives all child nodes. You can iterate using for-in or use array index. A child node with nodeType = 1 is an element.
Reload a page:
- location.href=”location.href”.
- location.reload();
- histoory.go(0);
Subscribe
Login
0 Comments