start popup ASP/JS
HeyJeg vil gerne at hvis en noget er opfyldt så åbner min side en popup
----------------
<SCRIPT LANGUAGE="JavaScript">
function PopopWindow(annonce, annoncenavn, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
nytpopop = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
win = window.open(annonce, annoncenavn, nytpopop)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
</script>
<%
If x = 5 then
ÅBEN ET POPUP VINDUE, altså fyr dette link af:
java script:PopopWindow('oversigt.htm','','650','500','yes')
%>
Men hvordan får jeg den til automatisk at åbne min popup når if sætningen er true?
