<script>
//Save parameter value in variable
var keyword = ""
var url_string = window.location.href;
var url = new URL(url_string);
var keyword = url.searchParams.get("keyword");
//console.log(keyword);
//Replace title
if(keyword !== null && keyword !== '') {
document.title = keyword;
}else{
console.log("noParamNoTitle");
}
//Replace the first H1
if(keyword !== null && keyword !== '') {
document.getElementsByTagName("h1")[0].innerText = keyword;
}else{
console.log("noParamNoHeading");
}
</script>
- +49 561 9963 9601
- hello@eboosting.net
- Resources
Fachbeitrag: Nutzerzentrierte Erhebungsmethoden