<body> <script> var script = document.createElement("script"); script.text = "alert('Yes');"; document.body.appendChild(script); </script> </body>