设置一个链接来打开一个页面并打开一个Javascript表单?

时间:2015-12-03 09:02:21

标签: javascript html hyperlink

我有一个订阅表单,只能通过页面链接上的Javascript打开。它位于https://pixelark.com/cscc(在'或通过电子邮件注册以接收我们的每周公告。点击此处')。

问题是需要额外点击才能看到此订阅表单。首先单击以访问该页面,然后单击第二次以访问该表单。

是否可以在链接中设置它以便它会转到页面并自动打开表单?

由于

2 个答案:

答案 0 :(得分:0)

为什么不检查网址和Document.ready事件中的参数

类似于https://pixelark.com/cscc?page=registerhttps://pixelark.com/cscc#register

 $(document).ready(function(){
        if ($('.slider img').length == 2) {
            var global_rotator = setInterval( "rotate()", 5000 );
    }

// insert code here to check location parameters
            });

这是关于如何检查位置参数的example

答案 1 :(得分:0)

不使用jQuery或其他东西,添加脚本标记:

<script>
(function() {
  window.onload = function() { show_signup_form('426'); })
})(window);
</script>
相关问题