Is there any way to call a JAVASCRIPT function in PHP in AJAX
Answer Posted / arya
<?php
$str = '<script language="javascript">
function get_pop_up()
{
alert("This is a way to call JAVASCRIPT function in PHP");
}
</script>
<input type="button" name="Click" value="Click"
onclick="get_pop_up();">
';
echo $str;
?>
| Is This Answer Correct ? | 15 Yes | 3 No |
Post New Answer View All Answers
How to send email using php script?
Explain mysql_error().
What is difference between action hook and filter hook?
Write a program to get second highest number in an array using php?
Which is better python or php?
What is the difference between htmlentities() and htmlspecialchars()?
What is the use of header() function in php?
Explain Type hinting in PHP?
How does firefox manage cookies?
Is runtime polymorphism overriding?
Whether php supports microsoft sql server?
what is CURL?
What is the super method?
What is php rest api?
How to get the position of the character in a string in php?