I\'m looking for a way to find if element referenced in javascript has been inserted in the document.
Lets illustrate a case with following code:
v
function isInDocument(query){ return document.querySelectorAll(query).length != 0; } // isInDocument("#elemid")