I want to launch small pop-up window when user clicks on recommend this link; however, the id of the link is not being passed...
I am using the following javascript to launch the window...
the url comes like: http: ...../recommend_it.cgi?ID=34 instead of ID=12
what can I do here ... thanks
Mark
function recommend()
{
window.open('<%db_cgi_url%>/recommend_it.cgi?ID=<%ID%>','Recommend','scrollbars=no, resizable=no, status=no, menubar=no, location=no, directories=no, width=500, height=500');
}
</script>and this code I put in link.html:<A HREF=javascript:recommend()>Send this Song</A>
I am using the following javascript to launch the window...
the url comes like: http: ...../recommend_it.cgi?ID=34 instead of ID=12
what can I do here ... thanks
Mark
Code:
<script language='javascript'> function recommend()
{
window.open('<%db_cgi_url%>/recommend_it.cgi?ID=<%ID%>','Recommend','scrollbars=no, resizable=no, status=no, menubar=no, location=no, directories=no, width=500, height=500');
}
</script>and this code I put in link.html:<A HREF=javascript:recommend()>Send this Song</A>