How do I use Target=_blank on a response.redirect?

后端 未结 12 1957
梦谈多话
梦谈多话 2020-12-10 16:12

I do not necessarily have to use response.redirect, but that is what I had. I would like to open the selected link in a new window. How do I do that?

context         


        
12条回答
  •  被撕碎了的回忆
    2020-12-10 16:39

    If I understand this correctly, you want to be able to open the redirected URL in a new window, but presumably retain the original target in the same window.

    Unfortunately you cannot do this, because the redirect is served by the server and not browser. You could potentially redirect to a page that contained some script that opened a new window based on a URL querystring parameter. But this would open yourself up to XSS if your not careful.

提交回复
热议问题