Subversion Repositories masonsql

Rev

Rev 297 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<html>
<head>
</head>

<body>
<H1>test_object.html</H1>

<script>

function Constructor(id, descr){
  this.descr = descr;
  this.id = id;
  this.alert = function(descr){
    if(descr){
      window.alert(this.id+' - '+descr);
    }else{
      window.alert(this.id+' - '+this.descr);
    }
  }
}

function Test(){
  alert('BINGO START');
}

var OBJ = new Constructor('OBJ', 'Bingo Bongo');

window.setTimeout(Test,10);
window.setTimeout(OBJ.alert,30);
window.setTimeout(function(){OBJ.alert()},20);
var MESS = 'BINGO STOP';
window.setTimeout(function(){OBJ.alert(MESS)},10);
MESS = MESS + ' BINGONE, la variabile viene risolta all\'atto dell\'esecuzione';

</script>


</body>
</html>




















<%flags>
  inherit => undef
</%flags>