Created
December 15, 2014 20:00
-
-
Save prasanthj/a5b71c47ee0dec3bbb72 to your computer and use it in GitHub Desktop.
Chrome extension get tab url
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chrome.tabs.query({'active': true, 'lastFocusedWindow': true, 'currentWindow': true}, function (tabs) { | |
var url = tabs[0].url; | |
console.log(url); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for this query. I would like to know about that how can we access the url outside the block like another function called processUrl()