closeRemoteSite Method

Call this command to force a remote site opened with showRemoteSite or showRemoteSiteExt to close.

intel.xdk.device.closeRemoteSite();

Available Platforms:

Example:

 
function onDeviceReady(){
        try
        {
                intel.xdk.device.mainViewExecute('intel.xdk.cache.setCookie("remoteSiteCookie","'+iCookieValue+'",-1);')
                intel.xdk.device.closeRemoteSite();
        } catch(e) {
                console.log("oops "+e);
        }
}
                          
For more complete information about compiler optimizations, see our Optimization Notice.