Windows.open not working

  • Thread starter Thread starter Rick Morayniss
  • Start date Start date
R

Rick Morayniss

I am getting an not delcared error for
windows.open("sample.htm", Null,
"height=200,width=400,status=yes,toolbar=no,menubar=no,location=no")

what do I delcare, and how?

Thanks
 
Rick Morayniss said:
still not working.
Name "window" is not declared is the eror message.

Coming into the discussion late, I just want to double-check: this is
being done in _client-side_ code -- right? That is, in the javascript
that is _not_ runat="server"?

Ricky
 
Post the corrected code,and we'll see what we can do. The correct version IS
window.open(...) - It refers to the browser window.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
I was assuming that this is client-side JavaScript, right? It will not work
on the server.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Null is not valid either, try:

window.open("sample.htm",null,"height=200,width=400,status=yes,toolbar=no,me
nubar=no,location=no");

-- bruce (sqlwork.com)
 
You can't open a window from the codebehind. You can output script that will
open it on the client, however.
 
Back
Top