i have this line of code:
then i have my JS:
<a href="#" id="profilelink" name="link2" onClick="viewornot(<?php echo $freechat_id ?>)"><?php echo $freechat_list; ?></a>
//call the JS onclick and if OK was click do the message box and send button here
on the e2 confirm: if i clicked OK how can i send a value back(so that i know OK was clicked) so that i can then produce the message box and send button and do the rest of the code to send a message???
var e = confirm('Do you want to view this profile?');
if (e == true)
window.location.href = "http://www-rainbowcode-net/apps_dev.php/profiles/showprofilepersonal?id="+id;
var e2 = confirm('Do you want to send a message?');
if (e2 == true)
//if ok was clicked send value back??