GMgKe586q6suSQnyqZLlGCooeWM

Pages

Search

Thursday, January 27, 2011

Confusing Syntax

<h1>Execute Directly</h1>
<div id="satu"></div>

<script>

var po = (function(){
    var satu = document.getElementById('satu');
    satu.innerHTML = 'Hello, Indonesia';
})(po);                  // or without 'po', it will be also run normally

</script>
Share/Bookmark

No comments:

Post a Comment