0
<script language="javascript" type="text/javascript">


function updateonlines()
{alert('you are updating the online users set the user field to online');}
function updateofflines()
{alert('you havve to set the online users to offline when they leave the page');}
window.onload = updateonlines;
window.onload = updateofflines;
</script>

SORRY NEW PROBLEM! I FIXED IT IT WORKS. but i have a question, can i use window.onload twice? like the above?

Edited by SKANK!!!!!: n/a

2
Contributors
2
Replies
5
Views
7 Years
Discussion Span
Last Post by SKANK!!!!!
0

You can just use a function that calls different functions, example:

<script type="text/javascript">
function sayHi() {
alert("Hi");
}
function sayHello() {
alert("Hello");
}
function callHelloHi() {
sayHi();
sayHello();
}
window.onload = callHelloHi();
</script>

~G

0

thanks thats good to know.

You can just use a function that calls different functions, example:

<script type="text/javascript">
function sayHi() {
alert("Hi");
}
function sayHello() {
alert("Hello");
}
function callHelloHi() {
sayHi();
sayHello();
}
window.onload = callHelloHi();
</script>

~G

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.