开发者

Bookmarklet title

开发者 https://www.devze.com 2023-04-03 18:24 出处:网络
I want to write a bookmarklet that will have a title when it\'s dragged to the bookmarks bar. I have the bookmarklet that I want working, but it doesn\'t have a title by default.开发者_如何学C

I want to write a bookmarklet that will have a title when it's dragged to the bookmarks bar. I have the bookmarklet that I want working, but it doesn't have a title by default.开发者_如何学C

I feel like there's probably a way to add a title property. Any ideas?


You mean

<a href="javascript:alert('bla')">Alert Bla</a>

which should create the title "Alert Bla" when dragged onto the bar

However please note the chrome bug

Alternatively change the name of the bookmark in the book mark properties

0

精彩评论

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