JAVASCRIPT   21

lang switch js

Guest on 8th June 2022 09:01:27 AM

  1. function togglelang(){var b=document.location.href;
  2. var a="/french/";
  3. var c="/english/";
  4. b=b.indexOf(c)>-1?b.replace(c,a):b.replace(a,c);document.location.href=b;
  5. return false;}

Raw Paste


Login or Register to edit or fork this paste. It's free.