1 2 3 4 5 6 7 8 9 10 11
<!DOCTYPE HTML> <div id=success>Fail</div> <script one> </script> <script two> </script> <script> if (document.querySelector("script[one] + script").attributes["two"]) { document.getElementById("success").textContent = "Success"; } </script>