Toon posts:

[javascript] Formulieren en popups

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ik heb heel postings op GoT zien staan over de vraag; hoe een formulier posten naar een popup, hier de oplossing:

code:
1
2
3
4
5
6
7
8
9
function subForm() {
  var win = window.open("","formulier","opties");
  win.name = 'naam';
  document.qform.action = 'index.htm';
  document.qform.target = 'naam';
  document.qform.submit();  
 }

<button onclick=subForm()>Verzenden</button>

  • crisp
  • Registratie: Februari 2000
  • Laatst online: 15:24

crisp

Devver

Pixelated

Gewoon in je form-tag:
HTML:
1
<form action="bla.html" target="newwin" method="get" onsubmit="window.open('', 'newwin', '');">

:Y)

Intentionally left blank


Verwijderd

wat dacht je van
HTML:
1
2
<form action="" target="_blank">
</form>

:P