Posted by kick ass on 04/12/07 17:16
Hello
My problem is:
I have one JAVASCRIPT inside <head> of my HTML.
I want PHP code which is written inside the <body> of my HTML to activate
it.
Here is the sample code that works (but I dont want to use ONLOAD command ):
<head>
<title>Untitled Document</title>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
function sayhello (text) {
alert(text);
}
</SCRIPT>
</head>
<body onload="javascript:sayhello('SOME_TEXT')">
</body>
-------------------------------------------------------------------
<head>
<title>Untitled Document</title>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
function sayhello (text) {
alert(text);
}
</SCRIPT>
</head>
<body> <!-- I DONT WANT TO USE onLoad HERE-->
<?php
---now here i want to activate that javascript above but using php
code.... IS IT POSSIBLE SOMEHOW TO CALL THAT FUNCTION???---
?>
</body>
THANKS FOR ANY HELP!!
[Back to original message]
|