How to stop redirected URL from being masked?

前端 未结 1 1574
野性不改
野性不改 2020-11-30 15:48

I have a doGet function in my google apps script (attached to a google doc) which is published as a web app and I want the user to be redirected to another web

相关标签:
1条回答
  • 2020-11-30 16:22

    Since your html is loaded in a inner iframe, You should use

    window.top.location = url
    

    to load in the top frame.

    0 讨论(0)
提交回复
热议问题