w3ka dev - share the knowledge .NET
Checking for existing Javascript variable
Somethemes it is necessary to know if the variable is already defined. For example when postback methods which register client script block are used.
function isSet( v )
{
return( typeof( v ) != 'undefined' );
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment