Just drag one simple textbox from toolbox and just add attributes like the below screen shot.
Then as we know, just write the required functions inside the Script tag like below:
That’s it, now this function will be triggered inthe client side and you will get the Output like the below screen shot
While Cursor is on the Bill no,
Once it came out of the Bill No.