How To trigger JS execution on 302 page

Thanks @monochrome.
As @superevr said, it’s very unlikely you can make the browser execute that. However it’s important to know how you get that 302 response. Because I think it’s possible to execute XSS on Firefox if the URL in Location is in some way invalid, like http://1234:0. So, if you are getting that response from something where you can change the entire URL, or maybe you can do something like[injection], then may be possible to do something with it. If you just got that response after adding a quote in the request, don’t forget to try with the quote encoded (%22)because that’s the way modern browsers are going to send the quote in the request to the server.