/ Published in: JavaScript
Manejar argumentos y variables recibidas en JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<script type="text/javascript"> <!-- function test_vars() { var argArr = test_vars.arguments; var argNum = argArr.length; for (var i = 0; i < argNum; i++) { alert("Argument " + i + " = " + argArr[i]); } } window.onload=foo('hello', 'world'); //--> </script>