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 can we change the value of a constant?
What is php session and how it works?
What is the differences between $a != $B and $a !== $B?
How to check if a string contains a character or word in php?
What are the different opening and closing tags available in PHP?
How to store the uploaded file to the final location?
What are the different components used in php for formatting?
Does php need html?
What is php mean?
How to redirect a page in php?
What is the purpose of the '.myd' file extension? What do thes file contain?
What is the function file_get_contents() useful for?
Does php have future?
Is it possible multiple inheritance in php?
How do you execute a php script from the command line?