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

How to send email using php script?

1046


Explain mysql_error().

997


What is difference between action hook and filter hook?

885


Write a program to get second highest number in an array using php?

1005


Which is better python or php?

997


What is the difference between htmlentities() and htmlspecialchars()?

999


What is the use of header() function in php?

1050


Explain Type hinting in PHP?

1021


How does firefox manage cookies?

985


Is runtime polymorphism overriding?

1000


Whether php supports microsoft sql server?

1048


what is CURL?

1024


What is the super method?

1011


What is php rest api?

1013


How to get the position of the character in a string in php?

1077