{"id":18762,"date":"2026-07-10T03:19:06","date_gmt":"2026-07-10T09:19:06","guid":{"rendered":"https:\/\/prettylinks.com\/?post_type=ht_kb&#038;p=18762"},"modified":"2026-07-10T03:19:06","modified_gmt":"2026-07-10T09:19:06","slug":"javascript-redirect","status":"publish","type":"ht_kb","link":"https:\/\/prettylinks.com\/fr\/docs\/javascript-redirect\/","title":{"rendered":"Redirigeur JavaScript"},"content":{"rendered":"<p class=\"wp-block-paragraph\">A <strong>JavaScript redirect<\/strong> uses a small piece of browser-side JavaScript to send visitors to the destination instead of an HTTP redirect. Like a <strong><a href=\"https:\/\/prettylinks.com\/fr\/docs\/meta-refresh-redirect\/\">Redirection via la balise meta refresh<\/a><\/strong>, the visitor briefly loads a real HTML page \u2014 but the redirect itself is triggered by JS, not by the browser's redirect mechanism.<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\"><strong>Remarque :<\/strong> Cette fonctionnalit\u00e9 est disponible avec les formules \u00ab D\u00e9butant \u00bb, \u00ab Marketer \u00bb et \u00ab Super Affiliate \u00bb. Si vous utilisez Pretty Links Lite, vous pouvez <a href=\"https:\/\/prettylinks.com\/account\/subscriptions\/\">passez \u00e0 un forfait Pretty Links sup\u00e9rieur<\/a> pour l'utiliser.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a510b62cb0b4&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a510b62cb0b4\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"2544\" height=\"1317\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/edit-link-attributes-2.png\" alt=\"\u00c9diteur de liens \u2014 Onglet \u00ab Attributs des liens \u00bb\" class=\"wp-image-18761\" srcset=\"https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/edit-link-attributes-2.png 2544w, https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/edit-link-attributes-2-300x155.png 300w, https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/edit-link-attributes-2-1024x530.png 1024w, https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/edit-link-attributes-2-768x398.png 768w, https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/edit-link-attributes-2-50x26.png 50w, https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/edit-link-attributes-2-1536x795.png 1536w, https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/edit-link-attributes-2-2048x1060.png 2048w\" sizes=\"auto, (max-width: 2544px) 100vw, 2544px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"why-it-matters-bot-and-prefetch-resilience\"><a href=\"#why-it-matters-bot-and-prefetch-resilience\">Why It Matters: Bot and Prefetch Resilience<\/a><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Modern web infrastructure is full of automated systems that &#8220;click&#8221; links without a human being involved:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Search engine crawlers<\/strong> that follow links to index them;<\/li>\n<li><strong>Link checkers<\/strong> that verify URLs aren't broken;<\/li>\n<li><strong>Email security scanners<\/strong> that follow every link in inbound mail to check for phishing;<\/li>\n<li><strong>Browser prefetch<\/strong> features that fetch likely-next pages before the user clicks;<\/li>\n<li><strong>Social media unfurlers<\/strong> that follow links to generate previews.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Most of these systems don't run JavaScript. So when they hit a JavaScript-redirect link, they:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Get the wrapper page back;<\/li>\n<li>Don't execute the JS;<\/li>\n<li>Don't follow through to the destination;<\/li>\n<li>Don't get counted as a click in your reports.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The result: <strong>your reports show real human clicks, not crawler noise.<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"when-to-use-javascript-redirect\"><a href=\"#when-to-use-javascript-redirect\">When to Use JavaScript Redirect<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Campagnes par courrier \u00e9lectronique<\/strong> \u2014 Modern email security tools &#8220;click&#8221; every link in your message before delivery to scan for malware. JavaScript redirect prevents these scans from inflating your click counts;<\/li>\n<li><strong>High-traffic affiliate links<\/strong> \u2014 Bots and prefetch can otherwise drown the real clicks in noise;<\/li>\n<li><strong>Anywhere bot pollution is a concern<\/strong> \u2014 Particularly when <strong><a href=\"https:\/\/prettylinks.com\/fr\/docs\/bot-and-ip-filtering\/\">Filtrage des bots et des adresses IP<\/a><\/strong> isn't catching everything.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"when-not-to-use-javascript-redirect\"><a href=\"#when-not-to-use-javascript-redirect\">When Not to Use JavaScript Redirect<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>When SEO equity matters<\/strong> \u2014 JS redirects don't pass SEO authority cleanly. Use a 301;<\/li>\n<li><strong>When some visitors might have JS disabled<\/strong> \u2014 Rare today, but possible. Visitors without JS will see a blank page (or a fallback link, depending on your setup) instead of being redirected;<\/li>\n<li><strong>Pour les actions de formulaire<\/strong> \u2014 JS redirects can't preserve POST data.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"setting-it-up\"><a href=\"#setting-it-up\">Mise en place<\/a><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Edit the link.<\/li>\n<li>Dans le cadre de la <strong>Type de redirection<\/strong> menu d\u00e9roulant, s\u00e9lectionnez <strong>JavaScript redirect<\/strong>.<\/li>\n<li>Cliquez sur <strong>Mise \u00e0 jour<\/strong>.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Test the link from a normal browser session \u2014 it should redirect like any other link. The behavior change is invisible to humans; only the bots see a different result.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-visitors-see\"><a href=\"#what-visitors-see\">Ce que voient les visiteurs<\/a><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Visitors briefly load the wrapper page and are redirected by JavaScript. On a fast connection, this is barely perceptible. On a slow connection, they may see a blank page for a fraction of a second longer than they would with a 302.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The wrapper page also gives any client-side analytics (Google Analytics, Facebook Pixel) a chance to fire \u2014 the same advantage as a <strong><a href=\"https:\/\/prettylinks.com\/fr\/docs\/meta-refresh-redirect\/\">Redirection via la balise meta refresh<\/a><\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"combining-with-tracking-pixels\"><a href=\"#combining-with-tracking-pixels\">Combining With Tracking Pixels<\/a><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A common pattern: use JavaScript redirect for paid traffic where bot pollution would skew conversion attribution, and combine it with conversion pixels on your destination page. The visitor lands cleanly, your tracking fires, and the bots don't interfere.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"combining-with-other-features\"><a href=\"#combining-with-other-features\">Combinaison avec d'autres fonctionnalit\u00e9s<\/a><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">JavaScript redirect works with:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><a href=\"https:\/\/prettylinks.com\/fr\/docs\/how-to-turn-off-click-tracking\/\">Modes de suivi des clics<\/a><\/strong>;<\/li>\n<li><strong><a href=\"https:\/\/prettylinks.com\/fr\/docs\/geographic-redirects\/\">Ciblage<\/a><\/strong>, <strong><a href=\"https:\/\/prettylinks.com\/fr\/docs\/link-rotations\/\">Rotation<\/a><\/strong>et <strong><a href=\"https:\/\/prettylinks.com\/fr\/docs\/split-testing\/\">Tests A\/B<\/a><\/strong>;<\/li>\n<li><strong><a href=\"https:\/\/prettylinks.com\/fr\/docs\/expiring-your-pretty-links\/\">Date d'expiration<\/a><\/strong>;<\/li>\n<li><strong><a href=\"https:\/\/prettylinks.com\/fr\/docs\/qr-codes\/\">Codes QR<\/a><\/strong>.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">It doesn't combine with <strong><a href=\"https:\/\/prettylinks.com\/fr\/docs\/tracking-pixel\/\">Pixel de suivi<\/a><\/strong> ou <strong><a href=\"https:\/\/prettylinks.com\/fr\/docs\/pretty-bar\/\">Pretty Bar<\/a><\/strong> \u2014 those are alternative behaviors. Pick one redirect type per link.<\/p>","protected":false},"excerpt":{"rendered":"<p>A JavaScript redirect uses a small piece of browser-side JavaScript to send visitors to the destination instead of an HTTP redirect. Like a Meta Refresh Redirect, the visitor briefly loads a real HTML page \u2014 but the redirect itself is triggered by JS, not by the browser&#8217;s redirect mechanism. Why It Matters: Bot and Prefetch&hellip;<\/p>","protected":false},"author":34280,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_strive_editorial_status":"not-started","_strive_copy_of":0,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"ht-kb-category":[709],"ht-kb-tag":[],"class_list":["post-18762","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-redirects"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO Pro 4.9.7.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"A JavaScript redirect uses a small piece of browser-side JavaScript to send visitors to the destination instead of an HTTP redirect. Like a Meta Refresh Redirect, the visitor briefly loads a real HTML page \u2014 but the redirect itself is triggered by JS, not by the browser&#039;s redirect mechanism. Note: This feature is available with\" \/>\n\t<meta name=\"robots\" content=\"max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n\t<meta name=\"author\" content=\"Nikola Mihajlovic\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prettylinks.com\/fr\/docs\/javascript-redirect\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO Pro (AIOSEO) 4.9.7.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"fr_FR\" \/>\n\t\t<meta property=\"og:site_name\" content=\"PrettyLinks\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"JavaScript Redirect | PrettyLinks\" \/>\n\t\t<meta property=\"og:description\" content=\"A JavaScript redirect uses a small piece of browser-side JavaScript to send visitors to the destination instead of an HTTP redirect. Like a Meta Refresh Redirect, the visitor briefly loads a real HTML page \u2014 but the redirect itself is triggered by JS, not by the browser&#039;s redirect mechanism. Note: This feature is available with\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prettylinks.com\/fr\/docs\/javascript-redirect\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-07-10T09:19:06+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-07-10T09:19:06+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"JavaScript Redirect | PrettyLinks\" \/>\n\t\t<meta name=\"twitter:description\" content=\"A JavaScript redirect uses a small piece of browser-side JavaScript to send visitors to the destination instead of an HTTP redirect. Like a Meta Refresh Redirect, the visitor briefly loads a real HTML page \u2014 but the redirect itself is triggered by JS, not by the browser&#039;s redirect mechanism. Note: This feature is available with\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/prettylinks.com\\\/fr\\\/docs\\\/javascript-redirect\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/prettylinks.com\\\/fr#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/prettylinks.com\\\/fr\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/prettylinks.com\\\/fr\\\/docs\\\/#listItem\",\"name\":\"Articles\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/prettylinks.com\\\/fr\\\/docs\\\/#listItem\",\"position\":2,\"name\":\"Articles\",\"item\":\"https:\\\/\\\/prettylinks.com\\\/fr\\\/docs\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/prettylinks.com\\\/fr\\\/doc-categories\\\/redirects\\\/#listItem\",\"name\":\"Redirects\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/prettylinks.com\\\/fr#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/prettylinks.com\\\/fr\\\/doc-categories\\\/redirects\\\/#listItem\",\"position\":3,\"name\":\"Redirects\",\"item\":\"https:\\\/\\\/prettylinks.com\\\/fr\\\/doc-categories\\\/redirects\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/prettylinks.com\\\/fr\\\/docs\\\/javascript-redirect\\\/#listItem\",\"name\":\"JavaScript Redirect\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/prettylinks.com\\\/fr\\\/docs\\\/#listItem\",\"name\":\"Articles\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/prettylinks.com\\\/fr\\\/docs\\\/javascript-redirect\\\/#listItem\",\"position\":4,\"name\":\"JavaScript Redirect\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/prettylinks.com\\\/fr\\\/doc-categories\\\/redirects\\\/#listItem\",\"name\":\"Redirects\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/prettylinks.com\\\/fr\\\/#organization\",\"name\":\"PrettyLinks\",\"description\":\"Top Affiliate Link & URL Shortener for WordPress\",\"url\":\"https:\\\/\\\/prettylinks.com\\\/fr\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/prettylinks.com\\\/fr\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\",\"url\":\"https:\\\/\\\/prettylinks.com\\\/fr\\\/blog\\\/author\\\/nikolacaseproof-com\\\/\",\"name\":\"Nikola Mihajlovic\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/prettylinks.com\\\/fr\\\/docs\\\/javascript-redirect\\\/#authorImage\",\"url\":\"https:\\\/\\\/prettylinks.com\\\/wp-content\\\/litespeed\\\/avatar\\\/1edf820c48f9c430f380efe81887b154.jpg?ver=1783124526\",\"width\":96,\"height\":96,\"caption\":\"Nikola Mihajlovic\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/prettylinks.com\\\/fr\\\/docs\\\/javascript-redirect\\\/#webpage\",\"url\":\"https:\\\/\\\/prettylinks.com\\\/fr\\\/docs\\\/javascript-redirect\\\/\",\"name\":\"JavaScript Redirect | PrettyLinks\",\"description\":\"A JavaScript redirect uses a small piece of browser-side JavaScript to send visitors to the destination instead of an HTTP redirect. Like a Meta Refresh Redirect, the visitor briefly loads a real HTML page \\u2014 but the redirect itself is triggered by JS, not by the browser's redirect mechanism. Note: This feature is available with\",\"inLanguage\":\"fr-FR\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/prettylinks.com\\\/fr\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/prettylinks.com\\\/fr\\\/docs\\\/javascript-redirect\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/prettylinks.com\\\/fr\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/prettylinks.com\\\/fr\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"datePublished\":\"2026-07-10T03:19:06-06:00\",\"dateModified\":\"2026-07-10T03:19:06-06:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/prettylinks.com\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/prettylinks.com\\\/fr\\\/\",\"name\":\"PrettyLinks\",\"description\":\"Top Affiliate Link & URL Shortener for WordPress\",\"inLanguage\":\"fr-FR\",\"publisher\":{\"@id\":\"https:\\\/\\\/prettylinks.com\\\/fr\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO Pro -->\r\n\t\t<title>JavaScript Redirect | PrettyLinks<\/title>\n\n","aioseo_head_json":{"title":"JavaScript Redirect | PrettyLinks","description":"A JavaScript redirect uses a small piece of browser-side JavaScript to send visitors to the destination instead of an HTTP redirect. Like a Meta Refresh Redirect, the visitor briefly loads a real HTML page \u2014 but the redirect itself is triggered by JS, not by the browser's redirect mechanism. Note: This feature is available with","canonical_url":"https:\/\/prettylinks.com\/fr\/docs\/javascript-redirect\/","robots":"max-snippet:-1, max-image-preview:large, max-video-preview:-1","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/prettylinks.com\/fr\/docs\/javascript-redirect\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/prettylinks.com\/fr#listItem","position":1,"name":"Home","item":"https:\/\/prettylinks.com\/fr","nextItem":{"@type":"ListItem","@id":"https:\/\/prettylinks.com\/fr\/docs\/#listItem","name":"Articles"}},{"@type":"ListItem","@id":"https:\/\/prettylinks.com\/fr\/docs\/#listItem","position":2,"name":"Articles","item":"https:\/\/prettylinks.com\/fr\/docs\/","nextItem":{"@type":"ListItem","@id":"https:\/\/prettylinks.com\/fr\/doc-categories\/redirects\/#listItem","name":"Redirects"},"previousItem":{"@type":"ListItem","@id":"https:\/\/prettylinks.com\/fr#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/prettylinks.com\/fr\/doc-categories\/redirects\/#listItem","position":3,"name":"Redirects","item":"https:\/\/prettylinks.com\/fr\/doc-categories\/redirects\/","nextItem":{"@type":"ListItem","@id":"https:\/\/prettylinks.com\/fr\/docs\/javascript-redirect\/#listItem","name":"JavaScript Redirect"},"previousItem":{"@type":"ListItem","@id":"https:\/\/prettylinks.com\/fr\/docs\/#listItem","name":"Articles"}},{"@type":"ListItem","@id":"https:\/\/prettylinks.com\/fr\/docs\/javascript-redirect\/#listItem","position":4,"name":"JavaScript Redirect","previousItem":{"@type":"ListItem","@id":"https:\/\/prettylinks.com\/fr\/doc-categories\/redirects\/#listItem","name":"Redirects"}}]},{"@type":"Organization","@id":"https:\/\/prettylinks.com\/fr\/#organization","name":"PrettyLinks","description":"Top Affiliate Link & URL Shortener for WordPress","url":"https:\/\/prettylinks.com\/fr\/"},{"@type":"Person","@id":"https:\/\/prettylinks.com\/fr\/blog\/author\/nikolacaseproof-com\/#author","url":"https:\/\/prettylinks.com\/fr\/blog\/author\/nikolacaseproof-com\/","name":"Nikola Mihajlovic","image":{"@type":"ImageObject","@id":"https:\/\/prettylinks.com\/fr\/docs\/javascript-redirect\/#authorImage","url":"https:\/\/prettylinks.com\/wp-content\/litespeed\/avatar\/1edf820c48f9c430f380efe81887b154.jpg?ver=1783124526","width":96,"height":96,"caption":"Nikola Mihajlovic"}},{"@type":"WebPage","@id":"https:\/\/prettylinks.com\/fr\/docs\/javascript-redirect\/#webpage","url":"https:\/\/prettylinks.com\/fr\/docs\/javascript-redirect\/","name":"JavaScript Redirect | PrettyLinks","description":"A JavaScript redirect uses a small piece of browser-side JavaScript to send visitors to the destination instead of an HTTP redirect. Like a Meta Refresh Redirect, the visitor briefly loads a real HTML page \u2014 but the redirect itself is triggered by JS, not by the browser's redirect mechanism. Note: This feature is available with","inLanguage":"fr-FR","isPartOf":{"@id":"https:\/\/prettylinks.com\/fr\/#website"},"breadcrumb":{"@id":"https:\/\/prettylinks.com\/fr\/docs\/javascript-redirect\/#breadcrumblist"},"author":{"@id":"https:\/\/prettylinks.com\/fr\/blog\/author\/nikolacaseproof-com\/#author"},"creator":{"@id":"https:\/\/prettylinks.com\/fr\/blog\/author\/nikolacaseproof-com\/#author"},"datePublished":"2026-07-10T03:19:06-06:00","dateModified":"2026-07-10T03:19:06-06:00"},{"@type":"WebSite","@id":"https:\/\/prettylinks.com\/fr\/#website","url":"https:\/\/prettylinks.com\/fr\/","name":"PrettyLinks","description":"Top Affiliate Link & URL Shortener for WordPress","inLanguage":"fr-FR","publisher":{"@id":"https:\/\/prettylinks.com\/fr\/#organization"}}]},"og:locale":"fr_FR","og:site_name":"PrettyLinks","og:type":"article","og:title":"JavaScript Redirect | PrettyLinks","og:description":"A JavaScript redirect uses a small piece of browser-side JavaScript to send visitors to the destination instead of an HTTP redirect. Like a Meta Refresh Redirect, the visitor briefly loads a real HTML page \u2014 but the redirect itself is triggered by JS, not by the browser's redirect mechanism. Note: This feature is available with","og:url":"https:\/\/prettylinks.com\/fr\/docs\/javascript-redirect\/","article:published_time":"2026-07-10T09:19:06+00:00","article:modified_time":"2026-07-10T09:19:06+00:00","twitter:card":"summary_large_image","twitter:title":"JavaScript Redirect | PrettyLinks","twitter:description":"A JavaScript redirect uses a small piece of browser-side JavaScript to send visitors to the destination instead of an HTTP redirect. Like a Meta Refresh Redirect, the visitor briefly loads a real HTML page \u2014 but the redirect itself is triggered by JS, not by the browser's redirect mechanism. Note: This feature is available with"},"aioseo_meta_data":{"post_id":"18762","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-07-10 09:26:06","breadcrumb_settings":null,"limit_modified_date":false,"open_ai":null,"ai":null,"created":"2026-07-09 15:15:07","updated":"2026-07-10 10:04:16"},"_links":{"self":[{"href":"https:\/\/prettylinks.com\/fr\/wp-json\/wp\/v2\/ht-kb\/18762","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prettylinks.com\/fr\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/prettylinks.com\/fr\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/prettylinks.com\/fr\/wp-json\/wp\/v2\/users\/34280"}],"replies":[{"embeddable":true,"href":"https:\/\/prettylinks.com\/fr\/wp-json\/wp\/v2\/comments?post=18762"}],"version-history":[{"count":1,"href":"https:\/\/prettylinks.com\/fr\/wp-json\/wp\/v2\/ht-kb\/18762\/revisions"}],"predecessor-version":[{"id":18948,"href":"https:\/\/prettylinks.com\/fr\/wp-json\/wp\/v2\/ht-kb\/18762\/revisions\/18948"}],"wp:attachment":[{"href":"https:\/\/prettylinks.com\/fr\/wp-json\/wp\/v2\/media?parent=18762"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/prettylinks.com\/fr\/wp-json\/wp\/v2\/ht-kb-category?post=18762"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/prettylinks.com\/fr\/wp-json\/wp\/v2\/ht-kb-tag?post=18762"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}