开发者

Getting the link text or title on Chrome bookmarklets

开发者 https://www.devze.com 2023-04-02 00:19 出处:网络
Maybe my Chrome is f\'ed up but it doesn\'t play nicely with bookmarklets. I\'ve got HTML(5) like this:

Maybe my Chrome is f'ed up but it doesn't play nicely with bookmarklets. I've got HTML(5) like this:

<a href="javascript:void(...)" title="Drag th开发者_如何学Cis into your Bookmarks toolbar">My bookmarklet</a>

When I drag it into the bookmarks toolbar it does so without the link text. Or any text. On the bookmarks toolbar I just get a grey globe icon (i.e. not even the site's favicon). I don't want to have to tell my Chrome users to right-click, click Edit... and type in a name.

I've got this in production on site here if that helps.


According to this it's a bug with Chrome 13, but it's fixed in Chrome 14.

0

精彩评论

暂无评论...
验证码 换一张
取 消