Marios Marios - 2 years ago 84
Javascript Question

how to give variable into window.location

I have a javascript which I need to give a variable. I cannot figure it out, it is not working. Anyone that can help?


window.location('<?php echo "edit_expedite.php?id=$id"?>');

Answer Source

Try window.location('edit_expedite.php?id='+"<?php echo $id; ?>");

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download