Menu
how do we open an image file?
So far i had this done:
function clickLink()
{
var a = document.createElement(‘A’);
td.appendChild(a);
a.href = ‘#’;
a.onclick = function(){ createImage(); };
var img = document.createElement(‘IMG’);
img.src = ‘../windowfiles/bee.gif’;
a.appendChild(img);
}
function createImage()
{
// im stuck here
}
i want the function to work such that when the link “Image” in my html page is clicked the image “bee.gif” will appear in another page.
how do i go about this?
Thanks