Run queries with F5 key
As a Visual Studio developer and SSMS user, I'm used to press F5 to build/run queries. However, this often refreshes the site - losing my query in Application Insights.
F5 should run the query.
Alternatively, you should prompt the user if they want to save their query before leaving the page.