hellow

i make a javascript function. i can call it via onLoad attribute and via form input. but there must be someother way to call the function, i mean from script.

can anyone help me out here.

thanks in advance - iqbal

<a href="javascript:del('passing variable')" >JS function</a>

i want to call the function dynamically from a php or anyother script. like

if(true)
{
<script>
startFunction();
</script>
}

heloo try this:

if(true)
{
	echo '<script language="javascript">startFunction();
</script>';

}

i have tried this shanti. doesnt working. could u tell me, how to call a js function automatically other than onload attribute.

Tell me in which purpose ,your are doing this requirement....then we will go to another way...

i am going to make an online exam site by using fusebox technology.i can't use body onLoad attribute to call a js function. however, i have to call the function dynamically from script.but the question is how?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.