//get the browsers window object
@mSrc = window;
//invoke our method
// treat "a" as an object
a.alert(‘this is a test’);
In the above example we simply calls a procedure passing the native browser object “window” as a parameter. In the HandleCallBack method we invoke the alert method of that object. Once again, Smart deals with variants as unknown entities – so there is no checking that “alert” actually exists.