Binom Documentation

К навигации

Displaying the parameters on the landing page

Let’s say, you pass the parameter {device_name} in the lander URL. Your link looks look this:
http://landerdomain.com/lander1.html?device_name={device_name}
There is an example of an ordinary lander that displays this parameter:

<html>
<head>
<script>
function getURLParameter(name) {
return decodeURI(
(RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1] || ''
);
}
</script>
</head>
<body>
You use this device: <script>document.write(getURLParameter('device_name'))</script> !
</body>
</html>

Want to help us improve this documentation page? Create a pull request