Sometimes a prerequisite to getting a burrito for lunch involves using Drupal URL arguments in Javascript. So for example, say you had a URL like this:
http://www.tylerfrankenstein.com/chicken/burrito/combo
You can add code like this to your module:
function my_module_init () {
drupal_add_js(array('arg' => arg()),'setting');
}
And finally you can use code like this in Javascript to use the Drupal URL arguments: