onload event works with the <body> and some other tags, or you can also use window.onload = function(){} see below code example
HTML
<input type="text" class="form-control" name="company[name]" id="company_name"/>
Js code
window.onload = function(){ document.getElementById("company_name").value = "value"; }
PS: id will be a unique selector, so add the id attribute to the input element.
you can access the whole element using the right selector in the anonymous window.onload event function
UPDATE
proposed by @ AlexanderO'Mara
'onload' is supported by the following HTML tags:
<body>, <frame>, <frameset>, <iframe>, <img>, <link>, <script>
And the following Javascript objects:
image, layer, window
source share