
window.open - "Object required"
<html>
<head>
<script language="VBscript">
sub btn_onclick()
window.open "http://www.microsoft.com"
end sub
</script>
</head>
<body>
<INPUT TYPE="button" NAME="btn" value="open window">
</body>
</html>
================================
Of course if you try "window.open" in server side (ASP) vbscript, you'll get an "Object required"
error. There is no window object on the server side, just like there's no Response object on the
client side...
--
Michael Harris
Microsoft.MVP.Scripting
--
Quote:
> Using Javascript - window.open <filename> works fine.
> All variations I have tried using VBscript fail with "Object required"
> error.