Submit i pop-up
Hejsa allesammen - jeg har en form, med action=search.asp - men jeg vil gerne have, at search.asp åbner i et nyt vindue! Hvordan gør jeg det? Jeg har dette i <head>:<script language="JavaScript">
<!-- Gem koden for gamle browsere
function PopWin(url,h,w) { var ww = 480, wh = 340, leftPos = null, topPos = null;
IE=(document.all)?true:false;
var wh = (IE)?document.body.clientHeight : window.innerHeight;
var ww = (IE)?document.body.clientWidth : window.innerWidth;
if (top.screen){
if (screen.width){
leftPos = Math.round((ww-w-10)/2);
topPos = Math.round((wh-h-29)/2);
} else {
leftPos = 50
topPos = 50
}
}
popupWin = window.open(url, 'view', 'scrollbars,height=' + h + ',width=' + w + ',top=' + topPos + ',left=' + leftPos + '')
}
// -->
</script>
Og i <body>:
<a href="java script:PopWin('search.asp',500,500);">
????????????
/cotus
