Dynamically setting tab title/name

Dynamically setting tab title/name

I would like to dynamically set a tab title/name depending on the ajax content returned to the page when it loads, is there a way to do this?

example
        <LI><A href="lookup_return_data.php" title="result"><SPAN>set this content when page loads ie results:6</SPAN></A></LI>    

It can be done perhaps with reg expression, but I assume there is a simple jquery solution.

Thanks