Image align Example : Image Img « HTML « JavaScript DHTML
- JavaScript DHTML
- HTML
- Image Img
Image align Example
<html>
<head>
<script language="JavaScript">
function function1() {
document.all.myImage.align = "middle";
}
</script>
</head>
<body>
<img id="myImage" src="http://www.java2s.com/style/logo.png" width="74" height="99">
Sample Text
<button onclick="function1();">Align Middle</button>
</body>
</html>
Related examples in the same category