Jump to content
php.lv forumi

Preview un Submit


andrisp

Recommended Posts

var preview = false;

function formSubmit(form) {
    if (preview) {
         form.target = "_blank";
    }
    return true;
}

<form ... onsubmit="formSubmit(this);">
<input type="submit" onclick="preview=true;" value="Preview" />
</form>

Edited by Delfins
Link to comment
Share on other sites

×
×
  • Create New...