【问题标题】:How to redirect Chargify hosted page to different URL如何将 Chargify 托管页面重定向到不同的 URL
【发布时间】:2023-03-17 03:09:01
【问题描述】:

我有 chargify 托管页面,但我想将其重定向到不同的 url,因为 chargify 在其公共托管页面上允许的自定义有限,我尝试通过放入自定义 javascript 区域来重定向以下代码,但它不起作用。

 window.onload = function() {
            setTimeout(function() {
                window.location = "https://reference.chargify.com/v1/subscriptions/create-subscription";
            }, 100);
        };

期待解决方案,谢谢

【问题讨论】:

    标签: javascript chargify


    【解决方案1】:

    我认为它需要是 window.location.href(不仅仅是 window.location)。它对我有用。

    这个答案表明 window.location.replace 更可取How do I redirect to another webpage?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-10-04
      • 1970-01-01
      • 2015-10-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多