Hi
On my webpage Im using EIT Lightbox to display images. I need to click on the Lightbox hyper link by code. I have tried the following
body.Attributes.Add("onLoad", "document.getElementById(\"lbh1\").click()\n");
body.Attributes.Add("onload", "eval(document.getElementById(\"lbh1\").href);\n");
But neither seems to work. If I use the following code
body.Attributes.Add("onload", "alert('popup');\n");
The alert is displayed
Is there another way to do the click?