The following button must alert "object":
It works as expected with IE, Firefox and Opera.
A possible workaround could be the following:
eval.call( window.parent, 'var MyObject = new Object();' ) ;
The above works well with Firefox and Opera, but doens't work with Safari and IE. Not even window.parent.eval.call helped. So, it seams there is no workaround for it.