Placing two or more sets of onload/unonload into one <body> tag

D

Dung Ping

For instance, one set is:
<body onload="blinking_header()" onunload="stoptimer()">

Another set is:
<body onload="writemsg()" onunload="stoptimer()">

They represent two functions. How to place them in the <body> tag?

Thanks.
 
R

Randy Webb

Dung said:
For instance, one set is:
<body onload="blinking_header()" onunload="stoptimer()">

Set of what? That is not a set, its a body tag.
Another set is:
<body onload="writemsg()" onunload="stoptimer()">

Another set of what?
They represent two functions.

No, they represent two body tags.

How to place them in the <body> tag?

They are already body tags.

<body onload="writemsg();blinking_header();alert('RTFM')">
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top