Mobile/Fennec/CodeSnippets: Difference between revisions

Jump to navigation Jump to search
(Created page with 'Here you should find a set of useful code snippets to help you work with Fennec. Although Fennec is built on XUL and JS, like Firefox, the [[Mobile/Fennec/Architecture|architectu...')
 
Line 71: Line 71:


== Listening for Tab Events ==
== Listening for Tab Events ==
The <code>Browser</code> fires a few <code>Tab</code>-specific events. You can use these events to monitor tab browser lifecycle.: <code>TabOpen</code>, <code>TabSelect</code>, and <code>TabClose</code>. Here's an example of hooking up listeners for the events:
The <code>Browser</code> fires a few <code>Tab</code>-specific events. You can use these events to monitor tab browser lifecycle: <code>TabOpen</code>, <code>TabSelect</code>, and <code>TabClose</code>. Here's an example of hooking up listeners for the events:


<pre>
<pre>
canmove, Confirmed users, Bureaucrats and Sysops emeriti
2,798

edits

Navigation menu