Yes, just type:
That should do the trick.
1. Open Chrome.
2. Open developer console (Ctrl+Shift+C).
3. Unlock it in a separate window.
4. Check the Offline box in the Network tab.
5. Reload your page, your current tab should be offline. The rest of the tabs should remain online.
Or you can simply go to this URL to play: