Reputation: 559
I'm trying create a simple bookmarklet to capture the title and url of a page. Here's basically what I have:
<a href="javascript:location.href='http://supergroovsite.net?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(window.document.title)">bookmarklet</a>
It works fine in other browsers but Chrome returns 'about:blank'. Sometimes it returns the correct url. Why is this happening?
Upvotes: 2
Views: 4940
Reputation: 100205
This might help you in solving your problem: location.href is about:blank in Chrome. Hope it helps
Upvotes: 2