Is it possible to trigger a Javascript script, when an input element or any other html element is rendered. This script should be triggered from within the html tag, so that
No this is not possible. You could however use jQuery + $(document).ready(function) to modify any input field you want right after the page has finished loading.