<ole>
I IE kan du bruge showModalDialog() :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<title>TITLE</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/JavaScript">
function myPromt(arg) {
var pop = false;
var pop = window.showModalDialog("promt.html", arg,
"dialogHeight:250px;dialogWidth:500px;edge:Raised;center:Yes;help:No;resizable:No;status:No;");
if (pop) alert(pop);
}
</script>
</head>
<body>
<button onclick="myPromt('Sig noget')">TEST</button>
</body>
</html>
-------------------------------
Og promt.html :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<title> Fars Lille PromteBasse</title>
<style type="text/css">
body {
background-color: #c0c0c0;
}
</style>
<script type="text/JavaScript">
var d, txt = window.dialogArguments;
d = document;
window.onload = function() {
d.getElementById("myTxt").innerHTML = txt;
}
function myOK() {
window.returnValue = d.f.t.value;
window.close();
}
</script>
</head>
<body>
<div id="myTxt"></div>
<form name="f">
<input type="text" name="t"><br>
<button onclick="window.close()">Fortryd</button>
<button onclick="myOK()">OK</button>
</form>
</body>
</html>
Så kan du style ligeså tosset, du vil :)
/mvh
</bole>