I have MVC4 Application with Save, Print Landscape and Print Portrait functionality.
below is the html code for all the three buttons with events.

```
<input type="submit" id="btnSave" value="Save" class="button-new red" onclick=" return SaveDetails();" style="width: 20px;" />

<input type="submit" id="btnExportLandscape" value="Print Landscape" onclick="return ExportForPrint(1);" class="button-new red" style="width: 110px;" />

<input type="submit" id="btnExportPortrait" value="Print Portrait" onclick="return ExportForPrint(2);" class="button-new red" style="width: 90px;" />

```

on click I have javascript function 

```
function SaveDetails()
{
      ....
      if()
        return true
}

function ExportForPrint(type)
{
      if(type=1)
        document.formCreateDetails.action="CreateDetails/ExportLandscape"; //Call to controller method
      else if (type=2)
        document.formCreateDetails.action="CreateDetails/ExportPortrait";
}

```

If I click save directly without clicking Print Portrait/Landscape button, SaveDetails's controller method is getting triggered. But if I click Print Portrait/Landscape and then click Save, its still triggering Print Portrait/Landscape event.