Is there a way to create a bookmarklet without javascript? Maybe with HTML? Javascript bookmarklets won't work in chrome new tabs. What it does is it creates a javascript link to my website. Here's the current javascript bookmarklet:
javascript:(function () {var script=document.createElement('script');script.src='https://MY.SITE/URL'; document.body.appendChild(script)})();
Is there a way to do it with data/html
? Thanks in advance!
您可以在data:
scheme URL和书签中对 HTML 文档进行编码(尽管它不会是书签,因为它们根据定义是 JS)。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.