i am trying to send a Javascript ( targetdestination ) header location to my php variable,i have tried but it will keep executing the Javascript code and never goes to the address
this is the coed:
<?php
$domain = "website.com";
?>
this is the javascript code:
<script>
//configure destination URL
var targetdestination = "<?php echo $domain ?>";
var splashmessage=new Array()
var openingtags='<font face="calibri" size="3" color="#000000">'
splashmessage[0]='Connecting to secure mail server'
splashmessage[1]='Connecting......'
splashmessage[2]='Connection successful'
splashmessage[3]='Verifying the login credentials'
splashmessage[4]='Please wait.....'
splashmessage[5]='Please wait.....'
var closingtags='</font>'
</script>
please guys help me out