window.open assign fucntion to execute on message code example Example: window open method for browser detection browser detection and version dectaction in js