Log in

View Full Version : Submit button opening in new window.



pilgrimspursuit
05-31-2006, 10:06 AM
Hello,

like could someone please help me?

I am having trouble making my submit button open in a new window cause i am using a framed layout and i need the submit button for my voting poll to open in a new window (cause it currently opens in the same frame).
So like i said before could someone help me.. PLEASE?

this is the code:

<TR>
<TD align=middle bgColor=#A9BACA>
<input type="image" src="http://i65.photobucket.com/albums/h220/pilgrimspursuit/submit.png" name="search" value="search" border=0 vspace="4"></TD></TR>
<TR>

Well thanks.:)

shachi
05-31-2006, 10:33 AM
If you are using a form try placing a target attribute in your form element like this:

<form method="whatever.php"action="GET" target=_blank>

else try this:

<input type="image" target=_blank other="attributes...">

Twey
05-31-2006, 12:09 PM
The former is the correct method.

djr33
05-31-2006, 05:04 PM
Generally, I think that quotes are supposed to go around the target:
target="_blank"

yes?

Twey
05-31-2006, 05:58 PM
Not necessarily so, actually, I recently discovered. It's neater to have them, of course, but not required.