Chrome Extension JavaScript?

aqua

New member
If you have ever noticed, if you make a popup Chrome Extension, on the webpage, if you use javascript to alert window.location.href, it gives a link (url) that looks something like this:

chrome-extensions://fkgnsdkjbgdbdf/main.html

Well, I was wondering, if it is possible to get the location of the current page that the user is on, instead of the location that the webpage is from. This is a little frustrating.
 
Back
Top