Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What the limitation of header() function in php?

907


How can you send http header to the client in php?

953


What is the Default syntax used in PHP?

1054


Explain what is smarty?

999


If the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?

902


How can we determine whether a php variable is an instantiated object of a certain class?

912


what is session_set_save_handler in PHP?

957


What is the difference between get & post ?

1032


What does $_server mean?

944


Explain which cryptographic extension provide generation and verification of digital signatures?

947


Is PHP an open source software?

1002


What is the difference between php and cakephp?

954


Is php dead 2019?

887


What is php form validation?

967


What is difference between single quotes and double quotes in php?

849