Narayan: Formulardaten an Popup

Beitrag lesen

Versuchs mal damit:

function popup2() {
 var attribs = "";
 var firstrun = true;
 for (i=0; i<document.search.elements.length; i++)
 {
  if (firstrun) var conn = "?";
  else              conn = "&";

if (document.search.elements[i].type != "submit")
    attribs+= conn+document.search.elements[i].name+"="+document.search.elements[i].value;
  firstrun = false;
 }
 Fenster = window.open('organisation/search.php'+attribs,"PopUp1","width=250,height=200,left=100,top=400,screenX=100,screenY=400,scrollbars=yes,resize=no");
 Fenster.focus();
 }