Jump to content

simple script not working


niche

Recommended Posts

Why doesn't this display [ window, 'one', 'two' ] ?

<html><head><script type="text/javascript">  function makeArray(arg1, arg2){    return [ this, arg1, arg2 ];  }  window.makeArray('one', 'two');  </script>  </head><body></body></html>

Link to comment
Share on other sites

Thanks Ingolme. I had that problem when I was learning PHP.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...