I'm toying with an idea and need help implementing it. The code below shows what I have already tried. I am trying to use the onclick event to confirm the action, upon confirmation navigate to the new page. The confirmation will popup and no matter the selection, it will not allow the execution location change. Any suggestions without using a hyperlink? I'm sure there is an easy solution for someone out there!
Code: Select all
<tr class="odd" onclick="return confirm(\'Build a '.$value.' for $'.number_format($value).'?\'); location.href=\'?cmd=build&id=' . $value . '&x=' . $value . '&y=' . $value . '\'"><td>