Creating custom jQuery function without selector prerequisite
<p>I know that I can create custom jQuery plugins by using the <code>$.fn.myFunction</code> constructor, and the calling the custom function in JavaScript as <code>$('selector').myFunction()</code>. </p>

<p>However, for a project I'm currently working on, I need to be able to define a function that does not require a selector to work.This is actually for a MessageBox plugin, which will act in a similar manner to C#'s <code>MessageBox</code> class. As such, I would ideally like to create the function as <code>MessageBox</code>, and then call it as follows:</p>

<p><code>var myMessage = $.MessageBox();</code> and then in turn <code>myMessage.Show();</code></p>

<p>Notice the lack of selector brakets in the jQuery reference at the beginning of the function call. </p>

<p>Any advice on the best practice for this would be gratefully received.</p>
