How do I do this? Been trying but unsuccessful. I have an HTML button that I want the user to click and (without navigating to the location of the shapefile--since it's a website), the shapefile is added. So, I'm trying to achieve something like the following for the button:
<button type="submit" id="btnAddShp" name="Command" value="Add Shapefile" class="btn btn-cyan2 btn-sm" onclick="addShapefile()">Add Shapefile</button>
Appreciate any help.