I think what you want is a widget, which tends to be harder than a javascript macro.
Chris Hunt had a TW on this, but the page has disappeared. Fortunately, it's still on the wayback machine: https://web.archive.org/web/20190413130519/http://cjhunt.github.io/ HTH On Saturday, October 26, 2019 at 9:59:42 AM UTC-7, Siniy-Kit wrote: > > Hi Tony! I want to understand how to write my own .js widgets and plugins. > I need a simple example "Hello world" level. > It can be > > <$button> > <$action-sendmessage $message="tm-alert" > param1={{!!modified}} param2={{!!title}}/> > alert M+T > </$button> > > ........ > alert(param1+" "+param2); > ........ > > So, i want to make button with simple JavaScript alert for two tiddler > fields. This button will a good example for me and other beginners. > > > > суббота, 26 октября 2019 г., 13:58:06 UTC+3 пользователь TonyM написал: >> >> I can't directly help you on this but the password widget does write to >> local storage as well as the local storage plugin. >> >> Regards >> Tony >> > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f1f73da8-060a-4833-8516-c31817f9fa72%40googlegroups.com.

