sir i m unable to use it properly pls check the code where i should make changes to make it work and get it displayed
sir,the area where i have inserted the code is in bold and unlined
in the result html it shows [object] as the display instead of the image
smile always:)
anand
hiya,
this can be done like this:
[HTML]
<html>
<head>
<script type="text/javascript" >
var im="http://technofriends.files.wordpress.com/2008/03/google_logo_.jpg";
function create_img(){
var div = document.getElementById("pop");
var hold=document.createElement("img");
hold.src=im;
hold.border=2;
div.appendChild(hold);
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<input type="button" onclick="create_img();" value="Create image" />
<div id="pop"></div>
</body>
</html>[/HTML]
hope this helps.. this works for me :)
cheers !!