Hello,

Answer me I am adding multiple function onload in the body.

IE showing the correct result but mozilla showing the problem like it showing the last function result in all function results.


<body id="body" onload="showUser1('taj-mahal');showUser('taj-mahal');showUser2('taj-mahal');">

can anybody help on this,what is the problem???

and how to short out

Why dont you create a fuction to call all of this functions like this

function allfunction(){
showUser1('taj-mahal');
showUser('taj-mahal');
showUser2('taj-mahal');
}
<body id="body" onload="allfunction();">

and for your info your posting a javascript thread in a php thread

Yes, the above idea is good. Other wise try to call a function inside a function.
for example.

function ss()
{
var a=10;
var c=11;
vard=a+b;

function sss();
}

Member Avatar

Listen, why don't you guys find a room? preferrably a JS ROOM.

This is pHp. Sort it out.