I have some javascript to direct the page to a new url but I get directed to a http://www.myurl.com/undefined instead.
This is what I have, not sure what is wrong. I have tried also window.location
if (r == true) {
window.location.href = ('http://www.myurl.com/pubs_delete.php?=id'.a_href)
};
Thank you for any pointers
try something like this
javascript concatenation using +(plus) sympol ,you are using .(dot) sympol that is the problem for u