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 |
How do you check if a value is a number in javascript?
What is the use of decodeuri() and encodeuri()?
How do we add javascript onto a web page?
Explain the for-in loop?
How you will write a java script function that display an alert on the screen?
Is javascript free to use?
Is javascript object oriented?
What is stack in javascript?
Between JavaScript and an ASP script, which is faster?
Does javascript support multidimensional arrays ?
What is the use of history object?
Are there any iphone Institutes which also train iphone automation testing in Hyderabad?