BrU32

JQ Run HTML/JS V2 FInal Release SRC

Dec 14th, 2016
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
  2. <script>
  3. $("document").ready(function(){
  4. $("button").click(function(){
  5. var scr=document.createElement("script");
  6. var HTML= prompt("Enter HTML/JS To Load In Your Web Browser:");
  7. $("*").html("<p>"+HTML);
  8. scr.type="text/javascript";
  9. scr.text=HTML;
  10. document.body.appendChild(scr);
  11. });
  12. });
  13. </script>
  14. </head>
  15. <body>
  16. <p></p>
  17. <button>Run HTML Inline</button>
  18. </body>
  19. </center>
  20. </html>
  21. <script>
  22. document.write(x);
  23. </script>
Advertisement
Add Comment
Please, Sign In to add comment