photo

Richard Wisniewski

shared this question
5 years ago

Statistics

2
Comments
312
Views

Share

1
votes

How can I make the "Submit Search" open its action in a new window?

Hi,

I was wondering, how can I make my "Submit Search" button on my search page open its action in a new window/tab instead of loading in the current window?

I thought I could add:

  1. <input class="or_std_button" onclick="submit();" type="button" value="Submit Search" target="_blank" />
But this does not work.

Any ideas?

Add Comment

Comments (2)

photo
1

You could easily find the answer searching with Google.

I am a target-blank hater, but this will work as you wish:

  1. <form target="_blank">
- http://css-tricks.com/snippets/html/form-submission-new-window/

- http://davidwalsh.name/submit-form-new-window

photo
1

Thanks,

As always your answer is concise and to the point.

Well done!

Leave Comment

photo

Attach files...

The file must be a jpg, gif, png, bmp, ico, pdf, doc, rtf, txt, zip or rar no more than 20M