function click(x,y, scope){
scope = scope || window;
var ev = scope.document.createEvent("MouseEvent");
var el = scope.document.elementFromPoint(x,y);
ev.initMouseEvent(
"click",
true /* bubble */, true /* cancelable */,
scope, null,
x, y, 0, 0, /* coordinates */
false, false, false, false, /* modifier keys */
0 /*left*/, null
);
el.dispatchEvent(ev);
}
click(100,100, document.getElementById('originFrame').contentWindow)