Advertisement
BrU32

JQuery Run HTML Inline V2

May 15th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 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 HTML= prompt("Enter HTML To Load In Your Web Browser:");
  6. $("*").html("<p>"+HTML);
  7. });
  8. });
  9. </script>
  10. </head>
  11. <body>
  12. <p></p>
  13. <button>Run HTML Inline</button>
  14. </body>
  15. </center>
  16. </html>
  17. <script>
  18. document.write(x);
  19. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement