I am not getting the difference between the action and onsubmit tags of the form in html.

<form method=GET action="xyz.php" onsubmit="return xyz()">

my problem is "which will be called when" and limitations of each tag.Kindly Help....:(

onsubmit is called first. If this returns false, the form will not be submitted to the page specified in action.

commented: short and simple explanations +0
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.