What would be the simplest way to go about making the browser back button close a jQuery UI dialog?
I know there are plugins for ‘virtual addresses’ with hash tags, but I’m after something simpler than this — the app I am building is predominantly a classic web app but with a few modal ajax forms.
onhashchangeevent? This is only supported on some browsers, but there are plugins that implement it on others. E.g. http://benalman.com/projects/jquery-hashchange-plugin/