Java Script
Example of Changing the Value of an Element Like an Input Text Using JavaScript
Example of how to use Javascript to add value to an element like an input text.
Adding a Custom JavaScript in SharePoint Using Content Editor
Go to SharePoint Page and click onEDIT. Once in Edit mode, click on the INSERT tab and add a Web Part. Under Categories, choose Media and Content. Under Parts, choose Content Editor….