please i need assistance on javascript code:

what i intend doing is when a user clicks on sign in it takes the user to its dashboard (another page) here it will show the user name :

so i need a javascript code to show the inputed username of the user in its dashboard