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
I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?
What are the Advantages and Application Areas of PHP?
How can you retrieve data from the mysql database using php?
A process can run only in the background. State Whether True or False?
What is php namespace?
Can we extend two classes in php?
What is the difference between php traits vs interfaces?
my english is not too good then what we apply for a php programer post
Explain how to execute a php script using command line.
Which functions are used to count the total number of array elements in php?
Describe the security vulnerability of PHP?
Explain how is it possible to cast types in php?
Does php have block scope?
When is a conditional statement ended with an endif?
What is isset and unset in php?