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

What is PHP's configuration file called?

638


Explain object-oriented methodology in php?

663


What language is php based on?

568


Why framework is used in php?

620


How to send a cookie to the browser?

636






What is the difference between array_merge() and array_merge_recursive() in php?

615


What is php key?

591


Explain the difference between $message and $$message?

643


Can age be a variable?

593


What is constructors and destructors?

611


What is action hooks and filter hooks?

581


How to test if a variable is an array?

658


Differentiate between require and include?

628


Is python better than php?

601


How can php and html interact?

695