开发者

Getting the link text or title on Chrome bookmarklets

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜