Answers for "JAVASCRIPT html()"

10

javascript with html

// this how add javascript file in html !!


<script type="text/javascript" src="yourJavascript.js"></script>
Posted by: Guest on May-31-2021
0

jquery set html of element

$("button").click(function(){
  $("p").html("Hello <b>world</b>!");
});
Posted by: Guest on November-20-2020
3

script tag in html

<script>
  // Write JS here
</script>

<script src="link/to/js/file.js"></script>
Posted by: Guest on October-20-2020

Browse Popular Code Answers by Language