diff --git a/index.php b/index.php
index 640a2b6a1..6ffef19cb 100755
--- a/index.php
+++ b/index.php
@@ -245,7 +245,11 @@ if(! x($a->page,'content'))
/* set JS cookie */
if($_COOKIE['jsAvailable'] != 1) {
- $a->page['content'] .= '';
+ $a->page['content'] .= '';
+ /* emulate JS cookie if cookies are not accepted */
+ if ($_GET['JS'] == 1) {
+ $_COOKIE['jsAvailable'] = 1;
+ }
}