I have an image at the top right corner of a page. on click of the image i have to display a div that looks like a table with many rows. The div has to be positioned exactly below the image.I have tried the below code snippet.
<div><a href="javascript:Test()"><img align=right src="Test.png" /></a></div>
sample code snippet for test function
Test(){
var hNode = document.createElement('div');
hNode.style.display = "block";
hNode.style.overflow="hidden";enter code here
hNode.style.position = "absolute";
hNode.style.width = "400px";
hNode.style.height = "30px";
hNode.style.border = "1px solid #666666";
hNode .appendChild(document.createTextNode("Test"));
}
But the div does not show up. What is wrong with this snippet? Any help would be great..