What is the pro and cons using javascript in our form ?
- by justjoe
I got this code in my submit form
Then use some js functions in the head;
function frmSubmitSameWindows() {
form.target = '';
form.submit();
}
function frmSubmitNewWindows() {
form.target = '_blank';
form.submit();
}
What is the pro and cons when we use javascript event function such as frmSubmitSameWin() and frmSubmitNewWin() in our form ? as far as i concern, this is the best solution when we need a way to submit things. Is there other preference ? the better way then the way i got now ?