Submitting Forms to Different Pages

Submitting Forms to Different Pages

An HTML form usually looks like this:

 

where you have to specify the action within the Form tag, thus limiting a “post” method to only one destination. However, the JavaScript form object has an “action” property that lets you dynamically change the destination of a “post” method. This is helpful, for example, on a data form page where you have buttons to add, remove, or update records, and the code for each action is located in separate ASP files. This example demonstrates how to change the action dynamically.

 

Note: This technique will not work in Internet Explorer 3.0. While it does not give you a run-time error, the action property cannot be set dynamically.

Share the Post:
data observability

Data Observability Explained

Data is the lifeblood of any successful business, as it is the driving force behind critical decision-making, insight generation, and strategic development. However, due to its intricate nature, ensuring the

Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved