This is the cleanest “hello world” for RTO 7.13.0: it detects the extension, opens or reuses one controlled tab with a stable tabKey, proves control with a small overlay move, then lets you focus or close the same tab.
WARNING : This tab is controlled by RTO.
The open button reuses the same tabKey on purpose, so pressing it again focuses the existing controlled tab instead of creating a pile of clones.
| Flag | Meaning |
|---|---|
window.RTOdetected |
Set to true when the detector has found the extension. |
window.RTOconnected |
Set to true once a message channel has been opened. |
window.RTO_PAGE_ORIGIN |
Optional. The default rto-page origin is the normal 7.13.0 page-side origin. |
window.tabKey |
The logical key of the controlled tab. Reusing it is how openTab reopens the same lane cleanly. |
This page wires UI in boot_minimal_connection.js
Need the JavaScript helpers used on this demo page?
Visit the include catalog for individual helpers, helper packs, and the all-in-one RTO.min.js bundle.