hey everyone,,
how to create element html in BHO include event like "onclick"
im so confused for that,
i try this code :
document = (HTMLDocument)ieInstance.Document;
HTMLInputElement input = (HTMLInputElement)document.createElement("input");
input.setAttribute("id", "txtRec", 1);
input.setAttribute("type", "text",1);
input.setAttribute("onclick","javascript:function(){alert("Hello");}");
but when i use command :
document.getElementById("txtRec").click();
the alert is not show,,i think the event is not running,
do you have another way to attach event that i created element pleasee
big thanks...