oceanrythm
07-26-2005, 03:43 PM
Does anyone know how I can dynamically change the lang attribute of a visitors browser with a link?
|
Click to See Complete Forum and Search --> : dynamically change Lang attribute oceanrythm 07-26-2005, 03:43 PM Does anyone know how I can dynamically change the lang attribute of a visitors browser with a link? Kor 07-27-2005, 05:21 AM try this function: <script type="text/javascript"> function changeLang(){ var mylang = 'fr'; document.getElementsByTagName('html')[0].setAttribute('lang',mylang); } </script> webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |