hey there vejledreng
is this what you mean check it out here
you can search for 1 2 or 3
http://www.guzzie.dk/eksperten/link.aspheres the script
<html>
<head>
<SCRIPT LANGUAGE=\"JavaScript\">
<!-- Begin
// test variables
var myHeight = 200;
var myWidth = 150;
var isResizable = false;
function createTarget(form) {
_target = form.target;
_colon = _target.indexOf(\":\");
if(_colon != -1) {
form.target = _target.substring(0,_colon);
form.args = _target.substring(_colon+1);
} else if(typeof(form.args)==\"undefined\") {
form.args = \"\";
}
if(form.args.indexOf(\"{\")!=-1) {
_args = form.args.split(\"{\");
form.args = _args[0];
for(var i = 1; i < _args.length;i++) {
_args[i] = _args[i].split(\"}\");
form.args += eval(_args[i][0]) + _args[i][1];
}
}
form.args = form.args.replace(/ /g,\"\");
_win = window.open(\'\',form.target,form.args);
if(typeof(focus)==\"function\")
_win.focus();
return true;
}
// End -->
</script>
</head>
<body>
<form method=\"POST\" action=\"userinfo.asp\" method=get
target=\"foobar:width={window.screen.width/2},
height={myHeight},
width={myWidth},
scrollbars,
{(isResizable)?\'resizable\':\'\'},
status\"
onSubmit=\"return createTarget(this);\">
<input type=\"text\" name=\"ord\" size=\"20\"><br>
<input type=\"submit\" value=\" description \" name=\"Action\">
</form>
</body>
</html>
--== userinfo.asp ==--
<%
Set Conn = Server.CreateObject(\"ADODB.Connection\")
Conn.Open \"DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=\" & server.MapPath(\"popup.mdb\")
strSQL = \"SELECT DISTINCTROW * FROM popup WHERE ord=\'\" & request(\"ord\") & \"\';\"
Conn.Execute (strSQL)
Set rs = conn.Execute(strSQL)
if not (rs.BOF Or rs.EOF) Then
%>
<html>
<head>
</head>
<body>
<table align=\"left\">
<tr>
<td><%=rs(\"link\")%></td>
</td>
</table>
<%
conn.Close
Set conn = nothing
%>
<% else %>
<%
response.redirect (\"link.asp\")
%>
</body>
</html>
<% end if %>
Guzzie