<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="generator" content="PSPad editor, www.pspad.com">
</title>
function CreateElement() {
if(document.createElement){
var el = document.createElement("DIV");
el.id = "myDiv";
with(el.style){
width = 500 + "px";
color = "#ffff00";
backgroundColor = "#000080";
textAlign = "center";
fontWeight = "bold"
fontSize= 24 + "px";
padding= 40 + "px";
}
el.innerHTML = "Congratulation , vous vennez de creer un element dynamiquement .!"
document.body.appendChild(el);
}
}
</script>
<!--
body {
background-color: #666666;
}
-->
</style>
</head>
<div align="center" id="bout">
<input type="button" onclick="CreateElement();" value="CLIC SUR CE BOUTON">
</div>
</body>
</html>