How can you insert javascript in php code?

Answer Posted / naqiya

example
?>
<script language='javascript'>
document.location.href=".php";
</script>
<?php
}
?>

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to track user logged out or not? When user is idle?

688


Explain me the difference between include and require?

701


What is the difference between for and foreach?

761


List the different types of print functions available in php?

709


What is api laravel?

728


What does empty mean in php?

705


What is the use of strpos in php?

775


Do I need apache for php?

793


What's the difference between __sleep and __wakeup?

748


List few sensible functions in PHP?

744


What is the difference between require and include in php?

723


What does csrf token mismatch mean?

879


When use javascript vs php?

739


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

746


What is a stored procedure in mysql?

753