« `
First, you need to check if `rubberKey` is in the URL’s query parameters. You can do this by using the URLSearchParams interface like this:
« `
const urlParams = new URLSearchParams(window.location.search);
if (urlParams.has(‘rubberKey’)) {
const rubberKey = urlParams.get(‘rubberKey’);
// pass rubberKey on to the rest of your code
}
« `
Then, you can use the above code to check if `rubberKey` exists in the URL’s query parameters. If it does, you can use it as a variable in your code as normal.
Side note: it might be better to use `&rubberKey=1116mm` instead of `?rubberKey=1116mm` in the URL so that you can add multiple query parameters. `?` is usually reserved for the beginning of a new URL.
Type de construction: Self-Adhesive Decorative Film
VOC Classement: A+
IMO Classé: Yes
Largeur: 122cm
Description de la couleur: Walnut
Longueur: 50m
Biocide: No
Antibactérien: No
Contactez notre équipe du service client pour toute question, conseil ou pour passer une commande.
Vous n’avez encore consulté aucun produit.