Hi guys,

I am a rookie in JavaScript programming so I don't know if the
following issue is GreaseMonkey related or Firefox related.

I have this simple user script:

   if( window.opener == null )
   {
      // parent tab
      Object.getPrototypeOf(window).newFunction = function ( ) {...};
      open("");
   }
   else
   {
      // child tab
      opener.newFunction( );
   }

However, when the child tab is opened I get an "opener.newFunction is
not a function" error, although I can call opener.newFunction from the
child tab JS console.

Is there any setting for enabling the function call? What am I
missing?


Thanks,
Costin

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.

Reply via email to