Element.inside Check if the first element is inside the second element. How to use The code is self explanatory. It will return true if the first element is inside the second element. firstElement.inside(secondElement);