If 30-41 years >Button > go to a website…….
Otherwish 42-99 years > same button >go to another website.
Here is my code:
https://drive.google.com/file/d/1iqCo2CuvPP5Sm_olIZFoovXBlsiG0H6o/view?usp=sharing
>Solution :
JavaScript is there to rescue.
HTML:
<button onclick="navigation()">Click</button>
JavaScript
<script>
function navigation(){
var age = 40; // Not sure how you detect age
if (age>=30 && age<=41)
window.open("http://www.website1.com");
else if (age>=42 && age<=99)
window.open("http://www.website2.com");
}
</script>