Passing variables to form properties

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dainslie

    #1

    Passing variables to form properties

    Dear Group,

    I am trying to populate the action part of a form using a variable
    generated from a javascript.

    Any Ideas?

    Thanks
    Dave
    --
    dainslie
    ------------------------------------------------------------------------
    posted via www.WebFrustration.com

  • kaeli

    #2
    Re: Passing variables to form properties

    In article <03b538c5735fc3 6450bb31e32fd7b a47@news.terane ws.com>,
    dainslie.11d3hj @webfrustration .com enlightened us with...[color=blue]
    > Dear Group,
    >
    > I am trying to populate the action part of a form using a variable
    > generated from a javascript.
    >
    > Any Ideas?
    >[/color]

    Sure.
    Set the action to the variable.

    var myaction="myPag e.asp";
    document.forms["myFormName "].action = myaction;

    You have to do that some time before the form is actually submitted,
    usually in a function somewhere.

    --
    --
    ~kaeli~
    He had a photographic memory that was never developed.



    Comment

    Working...