Can someone help me write some code to add to my simple web browser?

Upon reaching the designated site, the code needs to tab to each form input window and populate it with text (which is pre-stored as variables).

I can get the text data pre-stored and navigate to the site, but what code do I need to "tab" "print" "tab" "print" "tab" "print" ... to fill the form?

thanks in advance!

-pg