Code: Select all
function onload() {
global $onload;
return "$onload;
}
Code: Select all
$onload="onload=self.focus();document.login.passwd.focus()";
I tried to solve the problem by adding load events thru javascript but unfotunetely it conflicts with oedit editor.
I will suggest the change of onload function in next version of CMSimple to something like this:
Code: Select all
function onload() {
global $onload;
return "onload=".$onload;
}
Code: Select all
$onload.="self.focus();document.login.passwd.focus()";
......
$onload.="MyJavascriptFuntion()";
jerry