changed name of onConstruction event to onload

This commit is contained in:
danm%netscape.com 1999-03-05 20:23:19 +00:00
parent ff5aa21d0d
commit 1c08963168
2 changed files with 4 additions and 4 deletions

View File

@ -870,7 +870,7 @@ void nsWebShellWindow::ExecuteJavaScriptString(nsString& aJavaScript)
/**
* Execute window onConstruction handler
* Execute window onLoad handler
*/
void nsWebShellWindow::ExecuteStartupCode()
{
@ -883,9 +883,9 @@ void nsWebShellWindow::ExecuteStartupCode()
if (mCallbacks)
mCallbacks->ConstructBeforeJavaScript(mWebShell);
// Execute the string in the onConstruction attribute of the webshellElement.
// Execute the string in the onLoad attribute of the webshellElement.
nsString startupCode;
if (webshellElement && NS_SUCCEEDED(webshellElement->GetAttribute("onConstruction", startupCode)))
if (webshellElement && NS_SUCCEEDED(webshellElement->GetAttribute("onload", startupCode)))
ExecuteJavaScriptString(startupCode);
if (mCallbacks)

View File

@ -5,7 +5,7 @@
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onConstruction="Startup()">
onload="Startup()">
<html:style>
#header {