I\'m new to chrome extensions.
I would like to create a simple chrome extension that popup an alert with the title of the current html page.
when I\'m performing: ale
For what you're doing all you need to do is this
chrome.tabs.executeScript({
code: 'alert(document.title)'
})
Chrome.tabs.executeScript allows you to run JavaScript in the current page instead of in the extension. So this works just fine but if you want to use the name of the page later in a more complex extension than I would just do what pimvdb did