Book Image

PhoneGap Beginners Guide (third edition)

Book Image

PhoneGap Beginners Guide (third edition)

Overview of this book

Table of Contents (22 chapters)
PhoneGap Beginner's Guide Third Edition
Credits
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Related Plugin Resources
Index

The getElementsByTagName() method


The getElementsByTagName() method returns a collection of elements with the given tag name. The complete document is searched, including the root node:

var allImages =document.getElementsByTagName("img");