if (document.getElementById("tt")[0]){ alert("hallo"); } Scroll to Top