-
Form Question
I've added a search form to my site, but I want it to open a new window when you hit the "go" button. I tried just adding target="_blank" to the code, but it dinnae work. Why dinnae it work? ;_;
-
Hypnotising you
Contributions
- Former Administrator
- Former Cid's Knight
-
Obviously, otherwise it would have worked when I did it.
That's two threads in a row you didn't immediatly solve my problem. You're losing your touch!
-
And then there is Death
-
-
Alright, maybe I'm just too tired but, Raf, what do I change this button code to to make the java opening crap work?
<*input type="image" border="0" value="Go" name="Submit" src="ap-search-go-btn.gif"align="absmiddle" width="21" height="21" />
-
-
That's the thing. I don't know what to put for your page. Its an Amazon.com search field, so I'm not opening a particular page, its submitting a search.
-
Banned
So the <*form action="something that's hosted on Amazon" />, and you want the search results to open in a new window? I'm not sure if you can do that, because the search results page is actually the script in the <i>action</i> property of the <i>FORM</i> tag. You may have to mess with the <i>FORM</i> and not the <i>INPUT</i> tag. You could try substituting <i>yourname</i> with the name of the script (it's linked to in < FORM action="<i>script</i>" ). That probably made next to no sense.
Try posting the code from < form> to </ form> so we can look through it. I think whether the results are opened in a new window is controlled within the actual script. Hopefully I'm just missing something really simple and obvious. Sorry I couldn't be of more help.
-
-
I looked at your site since that bit of code is unhelpful 
Try changing <*form action="http://www.amazon.com/exec/obidos/external-search"> into <*form action="http://www.amazon.com/exec/obidos/external-search" target="_blank">
And then there is Death
-
Banned
That's what I was going to suggest, but I figured the target property wasn't (and probably isn't) applicable to the FORM tag.
I too had a look at the frame source, and nothing helped. I looked around Amazon for a section about their site searches, but I couldn't find anything. Maybe there's a hidden input type that controls whether the form opens in a new window?
-
You can use target in a form tag. Example:
<form action="usercp.php?" target="_new">
<input type="submit" value="Open the User CP in a new window">
</form>
<form action="usercp.php?" target="_new">
<input type="submit" value="Open the User CP in a new window">
</form>
And then there is Death
-
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules