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 it possible to assign a php variable to javascript ? And
also is it possible to fetch the page contents if the url
is not under our control ?



Is it possible to assign a php variable to javascript ? And also is it possible to fetch the page ..

Answer / gagan rana

Yes ,it is possible by doing like the following:

<?php

$x = 'hai!';

echo "<script>var x = '" . $x . "';</script>";

?>

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More JavaScript Interview Questions

What is node value?

0 Answers  


How to make a array as a stack using javascript?

0 Answers  


What companies use javascript?

0 Answers  


What is the use of type of operator?

0 Answers  


TypeError: document.getelementbyid(...) is null?

0 Answers  


Is javascript case sensitive language?

0 Answers  


What does parse Query String return in javascript?

0 Answers   Changepond,


What is the use of isNaN function?

0 Answers  


What are the uses of javascript in web page designing?

0 Answers  


what is the extension of java script.

1 Answers  


How to disable an html object ?

0 Answers  


How to access an external javascript file that is stored externally and not embedded?

0 Answers  


Categories