Oh now I understand you. I do not know how to do it in my head, but I think you just need to get the information and then store it in an array, and then print that array into the console of the client.
I just think that it would be a bit messy, since it might now store the tabs and stuff, so it would be like one long line.
I am sure someone in here can tell you how to get the information and store it somewhere.