submit a form in a new tab

后端 未结 8 2033
我在风中等你
我在风中等你 2020-12-04 16:03

I\'d like (just to test some functions, after I\'ll avoid this behaviour) to load the page called by submit on a new tab : is it possible?

相关标签:
8条回答
  • 2020-12-04 16:51

    Your browser options must be set to open new windows in a new tab, otherwise a new browser window is opened.

    0 讨论(0)
  • 2020-12-04 16:52

    I have a [submit] and a [preview] button, I want the preview to show the print view of the submitted form data, without persisting it to database. Therefore I want [preview] to open in a new tab, and submit to submit the data in the same window/tab.

    <button type="submit" id="liquidacion_save" name="liquidacion[save]" onclick="$('form').attr('target', '');">Save</button></div>    <div>
    <button type="submit" id="liquidacion_Previsualizar" name="liquidacion[Previsualizar]" onclick="$('form').attr('target', '_blank');">Preview</button></div>  
    
    0 讨论(0)
提交回复
热议问题