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

I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?

992


What are the Advantages and Application Areas of PHP?

979


How can you retrieve data from the mysql database using php?

1080


A process can run only in the background. State Whether True or False?

1177


What is php namespace?

1034


Can we extend two classes in php?

1115


What is the difference between php traits vs interfaces?

1034


my english is not too good then what we apply for a php programer post

2649


Explain how to execute a php script using command line.

1230


Which functions are used to count the total number of array elements in php?

1071


Describe the security vulnerability of PHP?

1087


Explain how is it possible to cast types in php?

1024


Does php have block scope?

1015


When is a conditional statement ended with an endif?

1000


What is isset and unset in php?

1072