search results in a new window?

B

borgus

can someone give me a brief idea how to get a search form + button to open the
search results in a neww window using a window.open javascript function or
similar method?

thanks
 
S

Steve Pugh

borgus said:
can someone give me a brief idea how to get a search form + button to open the
search results in a neww window using a window.open javascript function or
similar method?

<form target="_blank" action="..." method="...">

If you want to use JavaScript then

<form target="foo"
onSubmit="window.open('','foo','width=500,height=300')" action="..."
method="...">

But better still don't. Leave the user's windows alone.

Steve
 
K

Karl Core

borgus said:
can someone give me a brief idea how to get a search form + button to open
the
search results in a neww window using a window.open javascript function or
similar method?

What gives you the idea that the user wants a new window?
 

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

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top