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);

but when i use command :


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...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.