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

后端 未结 12 1958
梦谈多话
梦谈多话 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:38

    I use this code for redirects:

    Response.Write("window.open('http://www.whatever.com','_blank')<"+"/script>");

    The final tag needs to be formatted <"+"/script>

提交回复
热议问题