HTML5 Forms as EditText (?) objects of html files?

I’m looking to make a login and registration form in the game itself, but I’m having trouble finding JS docs for it. Is it normal to make forms with cc sprites? Or is there a way to attach them to layers and add callbacks from an html5 document?