By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,648 Members | 1,665 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,648 IT Pros & Developers. It's quick & easy.

Can't prefil "action" of <form>

P: n/a
Don
Can someone tell me what I'm doing wrong here. I can't believe I'm having this kind of problem.
Think maybe I've been working on this for too long, and everything is starting to look the same.

I'm trying to use JS on a client-side page to prefill "action" of a <form> tag. Here's what I'm
using:

document.forms[0].action.value = "http://..."

Can someone please give me a hand with this.

Thanks,
Don

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Don wrote:
Can someone tell me what I'm doing wrong here. I can't believe I'm having this kind of problem. Think maybe I've been working on this for too long, and everything is starting to look the same.
I'm trying to use JS on a client-side page to prefill "action" of a <form> tag. Here's what I'm using:

document.forms[0].action.value = "http://..."

Can someone please give me a hand with this.

Thanks,
Don

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups ----= East and West-Coast Server Farms - Total Privacy via Encryption

=----

So...just set that 'action':

document.forms[0].action = "http://..."

Not a control so, no .value property involved. And: the form will
submit to itself if JS is unavailable. Might want to specify a
default...

Jul 23 '05 #2

P: n/a
Don
On 13 Feb 2005 23:01:00 -0800, "RobB" <fe******@hotmail.com> wrote:
Don wrote:
Can someone tell me what I'm doing wrong here. I can't believe I'm

having this kind of problem.
Think maybe I've been working on this for too long, and everything is

starting to look the same.

I'm trying to use JS on a client-side page to prefill "action" of a

<form> tag. Here's what I'm
using:

document.forms[0].action.value = "http://..."

Can someone please give me a hand with this.

Thanks,
Don

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet

News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World!

120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption

=----

So...just set that 'action':

document.forms[0].action = "http://..."

Not a control so, no .value property involved. And: the form will
submit to itself if JS is unavailable. Might want to specify a
default...

Got it! Thanks much Rob. Appreciate your help.
Don

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.