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 calculate the difference between two dates using php?
Define about declare construct?
What is magic quotes?
Explain the difference between require() and require_once()?
What library is used for pdf in php?
What is prepared statement in php?
Is it difficult to learn php?
What beforeFilter() is used?
What is difference between web service and api?
What exactly is validating and sanitizing?
What is a php tag?
What percentage of websites use php?
What are global variables in php?
How do you identify independent and dependent variables in research?
What is the use of strip_tags() method?