Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to get submit button link to open in a _blank window?

Status
Not open for further replies.

esada

Technical User
Nov 9, 2000
2
US
could someone please tell me how to get the response to clicking a form button to open in a new (_blank) window?

here's the code for the button in question:

<INPUT TYPE=&quot;button&quot; NAME=&quot;HIDDEN1&quot; value=&quot;Begin Randomization!&quot; onclick=&quot;rand_link()&quot;>

the page i'm trying to get this concept to work on is at:

thanks in advance for any suggestions!

esada
 
Yo Esada, nice idea, sexy!!! I like it.

Enough of that though down to business, i have had a look at your source code and i think that this is the problem

function go_to(url)
{
window.location=url
};

You are telling the page to change to the newly decided URL,
try the following code, it ask for a new window with the new URL.

function go_to(url)
{
window.open(url)
};

It works for me so it should work for you.

Good Luck And Keep On Pulling Those Off-The-Beaten-Nnet Sites in, DeltaFlyer DeltaFlyer - The Only Programmer To Crash With Style.
 
delta!!!
it worked just fine!
you really made my day! =:)

thanks a billion!!!!

(and thanks for signing my registry too!)

peace-
esada
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top