[SalesForce] chrome Browser issue when working with javascript

When popup window is closed I received a response from server which i need to pass in my callGetToken function. Everything is working fine in Firefox and IE but the function is not called in Chrome, can anyone tell me what is causing this? My Chrome version is 30.0.1599.101 m

function authentication{
var newwindow=window.showModalDialog(url,'',"dialogWidth:800px;dialogHeight:600px;dialogLeft:200px");
callgetToken(oid);
}
function callgetToken(oid){
alert('Hi');
getToken(oid);
}
<apex:actionFunction name="getToken" action="{!callAccessToken}" rerender="theForm" status="status">
  <apex:param name="org_id" value="" assignTo="{!org_id}" />
 </apex:actionFunction>

Best Answer

Thank you all for your solutions. Yes I have Security issue due to domain portability and i got the solution by The document.domain exception section in given link may be it help some more users...

http://javascript.info/tutorial/same-origin-security-policy

Related Topic