# event.namespace

## event.namespace ( ) Returns: String version added: 1.4.3

Description: The namespace specified when the event was triggered.

This will likely be used primarily by plugin authors who wish to handle tasks differently depending on the event namespace used.

## Examples:

#### Example: Determine the event namespace used.

    <!doctype html>
    <html lang="en">
    <head>
      <meta charset="utf-8">
      <title>css demo</title>

      <script src="//code.jquery.com/jquery-1.10.2.js"></script>
    </head>
    <body>

    <button>display event.namespace</button>
    <p></p>

    <script>

    $( "p" ).on( "test.something", function( event ) {
      alert( event.namespace );
    });
    $( "button" ).click(function( event ) {
      $( "p" ).trigger( "test.something" );
    });

    </script>

    </body>
    </html>

#### Demo: