A Possible Answer
Once you know the address of the search engine, then it should be fairly easy. But how do you get it? All I did was go to a search engine, do a search and copy the address from the Location bar. Ta Da!
Since you want the alert to pop up before the search occurs, make sure it's first in the run. Here's the script that did it: