<div id="main"> <button onclick="addimage();">Add</button> </div>
<script> function addimage() { var img = document.createElement("img"); img.src = "~/images/paddlewheel.png"; img.height = 60; img.width = 60; var class_name = "gif"; img.setAttribute("class", class_name); document.getElementById("main").appendChild(img); }; </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)