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
What are php magic methods?
How is it possible to parse a configuration file?
How to insert an new array element in array?
What is the difference between get and post in php?
Explain about the $_GET variable of PHP?
Are php variables global?
Tell me what types of loops exist in php?
Where sessions stored in PHP?
How can I load data from a text file into a table?
What are psrs? Choose 1 and briefly describe it?
Does php have multiple inheritance?
What is the empty function?
Does browser understand php?
What is php rest api?
What language is php based on?