my_toolstrip.html:
========================
<script>
function helloWorld()
{
        var p = window.location.href;
        console.log(p);
}
</script>

<div class="toolstrip-button" onclick="helloWorld();">
<span>Get It!</span>
</div>


When I surf the internet, I want to retrieve current page's url with
the "window.location.href" but I got the extension infomation below:

"chrome-extension://aaaaaaaaaaaaaaaaaaaaaaaaaaaaaabi/
my_toolstrip.html"

Does anyone have any suggestions or soluctions? thanks.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to