function receiveMessage(event) { console.log(event.data.fullscreen); Android.fullscreen(event.data.fullscreen); } window.addEventListener("message", receiveMessage, false); WaletHub compared America's 50 states across 37 key safety indicators. Here are the safest and most dangerous states in the US.