i need to call a javascript method within php code, but with no user interaction. i.e. no click of a button, no user input, nothing. i just need to do a call to the function, is it at all possible??
Do you like the javascript syntax better or something? Why would you want to do that. PHP and javascript are in two different worlds (server vs client). There is no direct interaction between the two. Your PHP can echo out javascript, and what you'll end up with is a generated page with that javascript, and when it arrives at the client, the javascript will do what you want. If it needs to execute as soon as the page loads, then use onload. I realize my answer is a little vague, but so is your question.