I would like to display the search dialog from a href link instead of using the default search UI. In other words, let’s say I have a button on the page. When this button gets clicked, I want to display this dialog:
How can I do this? What function should I call?
One of my motivations for doing this is to defer loading the 29KB script until the dialog is actually invoked. Any help would be appreciated here
I’m only moderately terrible at JS, but I can’t figure out how to selectively call the search dialog when I click a button! Any hints?
I am still having issues here. Can someone please point me in the right direction?
@michael.king - thanks for the quick response! I am just using Vanilla JS
Thanks! This is perfect. I’ll make the updates on my end shortly to use it