How to display search dialog from a different HTML element?

Hi everyone!

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?

Thanks,
Kirupa

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 :slight_smile:

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? :slight_smile: