HTML and CSS Reference
In-Depth Information
Figure 15.12 JavaScript grabs the two paragraphs at the top of the page and
displays them at the bottom.
15.7.2 Modifying the Content of an Element
By changing an element's innerHTML property, after some user interaction, you can
change the text that occurs between that element's opening and closing tag.
EXAMPLE 15.6
<html>
<head><title>Modify Text</title>
<style type="text/css">
body{background-color:aliceblue;}
.divStyle {
background-color:green;
margin-left:20%
margin-right:20%
border-style:solid;
color:white;
font-size:150%
}
</style>
 
Search WWH ::




Custom Search