window.open - "Object required" 
Author Message
 window.open - "Object required"

Using Javascript - window.open <filename> works fine.

All variations I have tried using VBScript fail with "Object required"
error.



Sun, 09 Feb 2003 03:00:00 GMT  
 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.



Sun, 09 Feb 2003 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. detecting "object required" or null object

2. detecting "object required" or null object

3. "Object Required" error

4. "Object Required" error

5. Object Required "txtPrice"

6. VBScript "Object Required WScript" Error

7. Error, Object Required "Wscript"

8. "Object Required" error

9. help: error 424 "Object Required"

10. "Object Required" in Visual Basic

11. Help: "Object Required" - error 424

12. "Object Required" for recordset

 

 
Powered by phpBB® Forum Software