I need to check; if a button is exists before content div. How can I do this with pure javascript? I did try parentElement.TagName and parentNode.TagName but did\'t worked. My e