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 the limitation of header() function in php?
How can you send http header to the client in php?
What is the Default syntax used in PHP?
Explain what is smarty?
If the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?
How can we determine whether a php variable is an instantiated object of a certain class?
what is session_set_save_handler in PHP?
What is the difference between get & post ?
What does $_server mean?
Explain which cryptographic extension provide generation and verification of digital signatures?
Is PHP an open source software?
What is the difference between php and cakephp?
Is php dead 2019?
What is php form validation?
What is difference between single quotes and double quotes in php?