... Det jeg mente er noget i denne stil:
test.html:
----------
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1"><title>Ingen titel</title>
</head><body>
<a href="popup.html" target="popupper">Popup</a>
</body></html>
-----------------------------------
kurv.html:
-----------
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1"><title>Ingen titel</title>
</head><body>
</body></html>
----------------------
popup.html:
-----------
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1"><title>Ingen titel</title>
<script type="text/javascript">
function test(f){
vals="";
elms=f.getElementsByTagName("input");
for(i=0,i2=elms.length;i<i2;i++){
if(elms[i].name)vals+=((vals.length>0)?"&":"")+elms[i].name+"="+escape(elms[i].value);
}
opener.location.href='kurv.html?'+vals;
opener.focus();
window.close();
return false;
}
</script>
</head><body>
<form onsubmit="return test(this);" method="get" action="#Javascript_fordres">
<input type="text" name="noget" value="noget">
<input type="text" name="noget2" value="noget2">
<input type="text" name="varenr" value="1234">
<input type="text" name="stk" value="1">
<input type="submit" value="ok">
</form>
</body></html>
----------------------
... men om det er det du mente med at
variablerne ikke kom med ved jeg ikke helt ...