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 ?
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 |
What is node value?
How to make a array as a stack using javascript?
What companies use javascript?
What is the use of type of operator?
TypeError: document.getelementbyid(...) is null?
Is javascript case sensitive language?
What does parse Query String return in javascript?
What is the use of isNaN function?
What are the uses of javascript in web page designing?
what is the extension of java script.
How to disable an html object ?
How to access an external javascript file that is stored externally and not embedded?