summaryrefslogtreecommitdiffstats
path: root/HTML/testonline.html
diff options
context:
space:
mode:
Diffstat (limited to 'HTML/testonline.html')
-rw-r--r--HTML/testonline.html3
1 files changed, 1 insertions, 2 deletions
diff --git a/HTML/testonline.html b/HTML/testonline.html
index 4555621..cf4a052 100644
--- a/HTML/testonline.html
+++ b/HTML/testonline.html
@@ -2,8 +2,7 @@
var isRemoteAvail = false;
function bodyLoad() {
var url = 'http://www.mandrakesoft.com/';
- var lang = /index-(.*)\.html/.exec(parent.location);
- if( lang != null ) lang = lang[1];
+ var lang = parent.window.document.documentElement.attributes.getNamedItem('lang').value;
if( lang != null ) url += '?wslang='+lang;
if( isRemoteAvail ) parent.location=url;
}