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 are the string function in php?

511


What is the use of mysql_real_escape_string() function?

515


What does the expression exception::__tostring means?

558


How long should a session last?

506


What is use of htmlspecialchars php?

510






Explain the difference between isset() and empty()?

537


What is htmlentities function in php?

507


What are PHP Magic Methods/Functions. List them.

545


What are differences between PECL and PEAR?

513


What is a php array?

495


Which library is used in php to do various types of image work?

515


What is a PHP accelerator?

587


How to avoid the undefined index error?

508


What is the meaning of a persistent cookie?

558


How to get best php developer Experience in Php with Sugar CRM / VTiger.

3970