<script> function algo(){ for(i=0;i<arguments.length;i++) alert(arguments[i]) } algo('hola','que','tal'); </script>