Monday, 10 August 2015
How to build Html tags using javascript
<script>
function click()
{
document.getElementById("myDIV").innerHTML="<object type='application/x-mplayer2' height='50' width='320'><param name='src' value='horse.mp3'/></object>";
}
</script>
<body>
<input type="button" value="Play" onclick="click();">
<div id="myDIV">
</div>
</body>
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment