我有一个订阅表单,只能通过页面中的链接上的 Javascript 打开。它位于https://pixelark.com/cscc (在“或通过电子邮件注册以接收我们的每周公告。单击此处”)。
问题在于,某人需要额外点击才能看到此订阅表单。第一次单击访问页面,第二次单击访问表单。
是否可以在链接中设置它,以便它会自动转到该页面并打开表单?
谢谢
最佳答案
为什么不在 URL 和 Document.ready 事件中检查参数
类似于 https://pixelark.com/cscc?page=register或https://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关于如何检查位置参数
关于javascript - 设置一个链接来打开页面并打开 Javascript 表单?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34061679/