New browser window.(Netscape and IE)

  • Thread starter Thread starter ryu
  • Start date Start date
R

ryu

is there a way to create a new browser window when the user clicks on a
button? For example when a user clicks new product...A new product browser
will appear and then the user will enter the new product information and
click save. And when the solution you going to suggest work on netscape
browsers?
 
ryu said:
is there a way to create a new browser window when the user clicks on
a button? For example when a user clicks new product...A new product
browser will appear and then the user will enter the new product
information and click save. And when the solution you going to
suggest work on netscape browsers?

Two options that should work with any non ancienz browser:

-- add a target="_blank" to your <form /> element

-- Use JavaScript to open a new window in the button's onClick handler.

Cheers,
 
Can I open a new browser without any address bar or toolbar? I would like
just the plain old browser...
Cheers to u 2
 
ryu said:
Can I open a new browser without any address bar or toolbar? I would
like just the plain old browser...
Cheers to u 2

Note that this an ASP.NET forum, not a JavaScript forum ;-)

Try
var frame = window.open("http://host/page.aspx", "WindowName",
"menubar=0,toolbar=0");

Cheers,
 
Back
Top