New browser window.(Netscape and IE)

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?
 
J

Joerg Jooss

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,
 
R

ryu

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

Joerg Jooss

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,
 
S

Steve Willcock

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top