I am looking for what events get triggered on a page when a url is changed.
My specific example is.
say you have a button on your page that points to “myfile.exe”
now when clicked the browser does not change the page, it simply shows a download prompt for the file.
What events does this trigger?
does it cause window.location to change?
are there any specific events you can hook into to detect this type of activity on your page?
when you click on a link or a button inside a webpage the event and behavior is always the same. The difference when you see a download prompt is because the browser itself doesn’t know how to render to resource so the best action it can do is give you the chance to save the file.
An exe file is not a type of file a browser knows how to deal with.
For more info google for the http header “content-type”