i have a form to submit like this
<form role="form" action="{{ url('panel/print/direport') }}" id="printForm" method="post" class="form-horizontal">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<input type="hidden" name="dfno" value="{{ $dfno }}" class="form-control">
<input type="hidden" name="bonperiod" value="{{ $bonperiod }}" class="form-control">
<input type="hidden" name="bonstuck" value="{{ $bonstuck }}" class="form-control">
<input type="hidden" name="boninc" value="{{ $boninc }}" class="form-control">
<input type="hidden" name="userids" value="{{ $userids }}" class="form-control">
</form>
<button type="button" onclick="document.getElementById('printForm').submit();" class="btn btn-primary">
<i class="glyphicon glyphicon-print"></i> Print</button>
usually if we want to the form submit to open new tab we just need to add target="_blank"
, my question is how to open new browser window when i click the button submit form?