![Try it now in CWS](https://raw.github.com/GoogleChrome/chrome-extensions-samples/master/apps/tryitnowbutton.png "Click here to install this sample from the Chrome Web Store") # Accessing the main world with ``.executeScript() Web view content scripts run in *an isolated world*. This means that they can access the current page's DOM, but cannot share objects with scripts included in the DOM because scripts in the DOM run in the *main world*. For a more detailed explanation, checkout [this video](https://www.youtube.com/watch?v=laLudeUmXHM). Running in an isolated world is usually what the developer wants because access to the DOM is enough. Sometimes, the developer may want to access Javascript objects in the main world. This sample shows good and bad examples of injecting Javascript into a `` that is intended to run in the main world. To do this correctly, content script must create a `