Say I have something like this
<script type="text/javascript" src="somefile.js"></script>
<div>something</div>
<script type="text/javascript">
// Some INLINE javascript
</script>
Is it guaranteed (by all browsers) that when the inline js code is executed both somefile.js has been loaded AND it can operate on the div before it?