Hello guys!
From an html page I call an external js function, like follow
$('#idElement').bind("click", {json_obj: obj}, callbackFunc)
where callbackFunc is passed to this page as parameter and is something like "opener.doSomething()"
My question is:
after calling the callbackFunc I need to exec close the window object.
I tryed thte follow solution but they don't work.
$('#idElement').bind("click", {json_obj: obj},
function(){
callbackFunc;
window.close();
});
or something like
$('#idElement').bind("click", {json_obj: obj}, callbackFunc;).bind("click",function(){window.close()});
Is there a way to solve my problem?
Thanks
Gisella