Hi Praveer,
Unless abap able to call JS function. seems can not.
And i think this action is very dangerous to any web application. See, a web application running, your code could get the element value which is user typing, without any interaction with this web server, if it`s passwrod?
regards,
Archer