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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.