|
| Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more. |
|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Registered
Join Date: Sep 2004
Location: Long Island
Posts: 7
Reputation: 5
|
HTML Form related Question
HTML Form related Question:
Anyone know how to make this window (thanks.html) pop-up at a specific size in a blank window instead of the same window as the form? HTML Code:
-Steve |
|
|
|
|
#2 |
|
Join Date: Feb 2003
Location: Allentown, PA USA
Posts: 15,215
Reputation: 467
|
Instead of using that line of code to redirect, use Javascript onSubmit to open a new window which will include your thanks.html.
http://developer.irt.org/script/786.htm |
|
|
|
|
#3 |
|
Registered
Join Date: Sep 2004
Location: Long Island
Posts: 7
Reputation: 5
|
Thanks! I'll try that out.
|
|
|
|
|
#4 |
|
Join Date: Jul 2004
Location: West Coast
Posts: 120
Reputation: 5
|
You can have a form post to a new, blank window by adding target="_blank" to the form tag.
I've never seen it actually documented anywhere, but that was an effect I had wanted to do, so just out of curiosity I tried it. I was actually pretty surprised that it worked! It's probably not what you're looking for a couple of reasons: 1. You can't control the size of the new window that pops up. 2. It requires you to post the data to a different window rather than the current one. I like it just because it means I can avoid using JavaScript--a language I'm not particularly fond of and tends to cause problems when I want to use the back button of the browser. ![]() You can see how I used it at http://www.geocities.com/rscarpen/Lb/ I wanted to create 'syndicated content' that others could put on their website. (It's the "Letterbox Search" box in the top right corner.) The page in that little box is coming from my 'real' website at http://www.atlasquest.com/ but if someone submits a search, I wanted it to open up in a new window. Anyhow, that's just a simplier option--if you can make it work for your purposes. It does have the two limitations I mentioned before, but in certain cases, it's much perferable to using JavaScript. Happy trails! -- Ryan |
|
|
![]() |
| Thread Tools | |
|
|