views:

104

answers:

3

I want to be able to capture the current url and/or the url of all open tabs.

Can I do this in JavaScript or JQuery or am I going to need a plugin in FireFox/Chrome

+1  A: 

Following is showing to get current URL.

http://stackoverflow.com/questions/406192/how-to-get-the-current-url-in-jquery

But i am not sure about getting URL for all tabs.

Amit
+3  A: 

"capture (...) url of all open tabs."

Why don't you ask Chrome for the stored passwords while you are at it?

The answer is: No, you can't.
It would be a serious privacy issue if that was remotely possible.

NullUserException
A: 

Like the other posters said, you can’t grab URLs of tabs besides the current one with standard JavaScript. But you can with Firefox / Google Chrome extensions.

byoogle