Write a function that takes one parameter that represents an id and changes the
ID: 3704736 • Letter: W
Question
Write a function that takes one parameter that represents an id and changes the element with that id to have the text change to 24 point in size. (JavaScript)
<script>
</script>
Now fill in the blanks below so that when you click the h5, the text in the h4, the h5, and the h3 All become 24pt in size by calling the function that you wrote above.
<h4______________________________________________________________> Ben Franklin</h4>
<h5___________________________________________________________________________________________________________________________________________________________________> An investment in knowledge </h5><h3_________________________________________> Another Franklin quote </h3>
Explanation / Answer
<html>
<head>
<title></title>
</head>
<body id="bodyid">
<h4 id="h4">Ben Franklin</h4>
<h5 id="h5">An investment in knowledge</h5>
<h3 id="h3">Another franklin quotes</h3>
</body>
</html>
<script type="text/javascript">
function test(id)
{
var id = document.getElementById(id);
id.style.fontSize = "24pt";
}
</script>
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.