Redirect to a new tab using CFLocation - CF9

前端 未结 3 787
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-21 08:36

Is there a way to redirect a user to a new window by using CFLocation? As far as I know you cannot use target=_blank in CFLocation. Is there another way to do it?

3条回答
  •  难免孤独
    2021-01-21 09:20

    performs a client-side redirect, but it's initiated on the server side (it sends a request with a redirect in the header), so it can't know anything about "tabs" which are a browser thing. CF doesn't know anything about what's going on in the browser.

    To do the sort of thing you want to do on the client site, you need to do the browser stuff with Javascript.

提交回复
热议问题