правя потвърждение за връщане от метода за публикуване на действие.. Кодът работи, но трябва да се фокусирам върху Отказ, когато дойде потвърждението. Но Always ok е фокусиран. Как да разреша този проблем
моят код е по-долу..
*
<script type="text/javascript">
function confirmation() {
var consumption = document.getElementById("consumption").value;
var texthere1 = document.getElementById("texthere1").value;
var line = document.getElementById("texthere").value;
return confirm("You are about to issue Material <?php echo ltrim($data , "0") ; ?> from 2100/<?php echo ($data2 ) ; ?> To a Dying STO " + texthere1 + " At line " + line + " of " + consumption + " KG. Are You Sure ?") ;
return false;
}
</script>
<form action="a.php" method="post">
<input name="Submit" type="submit" value="Submit" onclick="return confirmation()">
</form>
*