We Recommend

Pro JavaScript Techniques Pro JavaScript Techniques
Pro JavaScript Techniques is the ultimate JavaScript book for the modern web developer. It provides everything you need to know about modern JavaScript, and shows what JavaScript can do for your web sites. This book doesn't waste any time looking at things you already know, like basic syntax and structures.


Posted By

Navegante on 09/04/06


Tagged

javascript variables webdesign argumentos


Versions (?)


Who likes this?

3 people have marked this snippet as a favorite

luman
mate
damarev


Manejar argumentos y variables recibidas en JavaScript


Published in: JavaScript 


Manejar argumentos y variables recibidas en JavaScript

  1. <script type="text/javascript">
  2. <!--
  3.  
  4. function test_vars()
  5. {
  6. var argArr = test_vars.arguments;
  7. var argNum = argArr.length;
  8. for (var i = 0; i < argNum; i++)
  9. {
  10. alert("Argument " + i + " = " + argArr[i]);
  11. }
  12. }
  13. window.onload=foo('hello', 'world');
  14. //-->
  15. </script>

Report this snippet 

You need to login to post a comment.