display label below password input field on IE

Add-in Express™ Support Service
That's what is more important than anything else

display label below password input field on IE
 
jolly




Posts: 14
Joined: 2016-04-28
I'm afraid of disturbing you.
I wanna create a label below input field area,
when I move or click a mouse cursor on password input field on IE browsers.
Please let me know how to do it.
I'm really appriciate your support.

Thank you.

Best Regards,
Posted 02 May, 2016 21:06:13 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Jolly,

Please try the code below:

            mshtml.IHTMLElement elem = HTMLDocument.getElementById("sbtc");
            if (elem != null)
            {
                string labelSrc = "<label for="oCtrlID" accesskey="1">#<span style="text-decoration:underline;">1</span>: Press Alt+1 to set focus to textbox</ label >";
                elem.insertAdjacentHTML("afterend", labelSrc);
            }


It inserts a label after the HTML element with 'sbtc' id. I tested it on the Google Search page.
You can learn more about the 'insertAdjacentHTML' method here: https://msdn.microsoft.com/en-us/library/ms536452(v=vs.85).aspx
Posted 03 May, 2016 09:22:16 Top
jolly




Posts: 14
Joined: 2016-04-28
Thanks a lot!
Posted 09 May, 2016 11:18:09 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Jolly,

You are welcome!
Posted 11 May, 2016 08:54:51 Top