RTO_openTabsListing.js

Helper file documentation for RTO_openTabsListing.js.
Docs updated: 2026-03-24

Summary

Fill a <tbody> with currently controlled tabs.

  • Exports: (none) — auto-renders on DOMContentLoaded
  • Depends on: RTO_form_api.js
  • Recommended: RTO_connector.js (sets window.RTOconnected)
  • Optional: RTO_tabsList.js (snapshot fallback if present)

What it is

Renders the list of currently controlled tabs into a table body (<tbody>).

Download

Download RTO_openTabsListing.js

Required markup

<table class="table table-sm">
  <thead><tr><th>tabKey</th><th>URL</th></tr></thead>
  <tbody id="openTabsBody"></tbody>
</table>

Example

<script src="../RTO_helpers/RTO_form_api.js"></script>
<script src="../RTO_helpers/RTO_connector.js"></script>
<script src="../RTO_helpers/RTO_tabsList.js"></script>
<script src="../RTO_helpers/RTO_openTabsListing.js"></script>

<script>
RTOconnectOnce(1500).then(function () {
  console.log("connected:", window.RTOconnected);
});
</script>

Notes

  • Primary tbody id is openTabsBody. Legacy openTabsBoby is still accepted for backward compatibility.
  • Override the tbody id with window.RTO_OPEN_TABS_TBODY_ID before loading the script if you want a custom id.
  • If a tab URL is absolute (https://...), it’s rendered as a clickable link. Otherwise it’s rendered as <code>.

Next