<html xmlns="
http://www.w3.org/1999/xhtml" xml:lang="da">
<head>
<title>Centreret popup vindue</title>
<script type="text/javascript">
<!-- Dette script og mange flere -->
<!-- findes hos
http://www.html.dk -->
<!-- Start
function popup(url,name,win_height,win_width) {
pos_horizon = ((screen.width/2)-(win_width/2));
pos_vertical = ((screen.height/2)-(win_height/2));
window.open(url,name,"width="+win_width+",height="+win_height+",top="+pos_vertical+",left="+pos_horizon);
}
// Slut -->
</script>
</head>
<body>
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "
http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><p><a href="#" onclick="popup('popup.asp','mitvindue');">Åben popup vindue</a></p>
</body>
</html>