My function is working properly. I need to place at particular place. I mean within ><div id="cList"> tag. Function should run when the page is loaded by browser. please take a look my following html code:
Sorry, but I don't know how to make it any clearer. As document.write() simply spits out its output inline wherever it is placed, you simply put the script tag containing the document.write() statements wherever you want them to appear.