Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

marketo landing page locked content

//FORM PAGE CUSTOM HEADER HTML
<script src="forms2.min.js"></script><script>MktoForms2.whenReady(function(form){form.onSuccess(function(vals,tyURL){document.location.href = 'MYURL?CHECKSTRING=VALUE';return false;});});</script>

//CONTENT PAGE CUSTOM HEADER HTML (Requires jQuery)
<style>body{display:none;}</style><script type="text/javascript">$(document).ready(function(){var o="MYURL";if(parent.document.location.href.indexOf("marketodesigner")>-1)$("body").css("display","block");else{var e=function(o){var e,t,n=window.location.search.substring(1).split("&");for(t=0;t<n.length;t++)if((e=n[t].split("="))[0]===o)return void 0===e[1]||decodeURIComponent(e[1])}("CHECKSTRING");void 0===e?document.location.href=o:"VALUE"!=e?document.location.href=o:$("body").css("display","block")}});</script>
Comment

PREVIOUS NEXT
Code Example
Javascript :: js arrotondare numeri 
Javascript :: jquery click not working on ajax loaded content 
Javascript :: current height minus px 
Javascript :: fetch post image mdn 
Javascript :: email validation in react js 
Javascript :: change header background color on scroll css 
Javascript :: get alert after using ajax 
Javascript :: javascript fisher yates shuffle mdn 
Javascript :: jquery populate select from json 
Javascript :: javascript filter strings for partial matches 
Javascript :: find a value in an array of objects in javascript 
Javascript :: js switch case greater than 
Javascript :: javascript replace string 
Javascript :: jquery calculate datetime difference 
Javascript :: datatables ajax reload 
Javascript :: match date regex 
Javascript :: js iterate set 
Javascript :: javascript get current week number 
Javascript :: useref object is possibly null 
Javascript :: hnazmul hassan 
Javascript :: remove array empty values javascript 
Javascript :: javascript object to json 
Javascript :: how to add an image using jquery 
Javascript :: hook access loopback 
Javascript :: How to clear localStorage when browser/tab is closing 
Javascript :: yarn dev 
Javascript :: check if number is negative javascript 
Javascript :: canada postal code regex 
Javascript :: redirect to homepage javascript 
Javascript :: how to use await to console 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =