diff --git a/loginpage.php b/loginpage.php index a219b6d..c872ab1 100644 --- a/loginpage.php +++ b/loginpage.php @@ -52,5 +52,7 @@ $html = " "; $html = preg_replace( "/[\n\r]/", "", $html ); -echo "document.body.innerHTML += \"$html\";"; +echo "window.onload=function(){\n"; +echo " document.body.innerHTML += \"$html\";"; +echo "}\n"; ?>