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.f iles.wordpress. com/2008/03/google_logo_.jp g";
function create_img(){
var div = document.getEle mentById("pop") ;
var hold=document.c reateElement("i mg");
hold.src=im;
hold.border=2;
div.appendChild (hold);
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitl ed 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 !!