Quoth Neil at 11/08/06 21:01...
>>// Get browsers object
>>var browsers=document.getElementById('content').browsers;
>>var numBrowsers=browsers.length;
>> for (var i=0; numBrowsers>i; i++)
>> {
>> var thisURI=browsers[i].currentURI.spec;
>> // do something with it.
>> }
> You can get the titles too using .contentTitle which would save you a step.
In this instance, I just need the URIs. This is a new part of my
WebSticky[1] project, similar to "bookmark group of tabs". We retrieve
the URIs of all open tabs, turn them into an XML string, then POST it to
the server. We can then reverse the process to restore the snapshot.
As this is a client/server model, one can snapshot the tabs on one
computer (say work), then restore them on another computer (say home).
Cheers
M
1 - http://www.websticky.net
--
Matthew Smith
IT Consultancy & Accessible Web Application Development
Business: http://www.kbc.net.au/
Personal: http://www.smiffysplace.com/
LinkedIn: http://www.linkedin.com/in/smiffy