Can I save a reference to a Tab in UI?

Can I save a reference to a Tab in UI?

I was planning a project: 4 main tabs are to be primarily displayed, and if the user clicks on some inner tab content, based on said content it would make a New tab, and open that one.

My page displays a list of database items, each have an "Full View", "Edit" and "delete" button to their ids.
I want the 1st two options to open in a new tab, and if the user clicks a different item to load into that tab "Type" it was created for basically. I know how to make a new tab, and how to display the newly created one.

So can I do something like this:
  1. var viewTab = $("#tabs").tabs("new",url,"View Tab");
Or anyone have an idea for this?