Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F946223
addLoadEvents.html
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
895 B
Subscribers
None
addLoadEvents.html
View Options
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<
html
>
<
head
>
<
title
>
Testing dojo.addOnLoad() and dojo.addOnUnload()
</
title
>
<
script
type
=
"text/javascript"
src
=
"../../../dojo.js"
djConfig
=
"isDebug: true"
></
script
>
<
script
type
=
"text/javascript"
>
dojo
.
addOnLoad
(
function
(){
alert
(
"addOnLoad works"
);
});
dojo
.
addOnUnload
(
function
(){
alert
(
"addOnUnload works"
);
});
</
script
>
</
head
>
<
body
>
<
h1
>
Testing dojo.addOnLoad() and dojo.addOnUnload()
</
h1
>
<
p
>
This page has registers a function with dojo.addOnLoad() and dojo.addOnUnload.
</
p
>
<
p
><
b
>
dojo.addOnLoad()
</
b
>
: You should see an alert with the page first loads ("addOnLoad works").
</
p
>
<
p
><
b
>
dojo.addOnUnload()
</
b
>
: You should see an alert if the page is reloaded, or if you navigate to a
different web page ("addOnUnload works").
</
body
>
</
html
>
File Metadata
Details
Attached
Mime Type
text/html
Expires
Sat, Apr 26, 05:42 (3 d, 11 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23116
Default Alt Text
addLoadEvents.html (895 B)
Attached To
rZEDHG ZedLegacy
Event Timeline
Log In to Comment