Note that there are some explanatory texts on larger screens.

plurals
  1. POjavascript download link not working
    primarykey
    data
    text
    <p>i have been trying a lot to download exe files using javascript ,i have did it using radio buttons before but now i dont have any idea how should i download .the scenario is there are 3 checkboxes admin,security,security1 ,and i am supposed to check whether which combination of checkboxes are seslected after that on clicking on download button different zip files need to be downloaded .</p> <pre><code> &lt;button onclick=" if(!this.form.admin.checked&amp;&amp;!this.form.security.checked&amp;&amp;!this.form.security1.checked) { document.getElementById('errfn').innerHTML='Make atleast one selection'; } else if (this.form.admin.checked&amp;&amp;this.form.security.checked&amp;&amp;this.form.security1.checked == 1) { alert('security32 and admin and security64'); } else if (this.form.security.checked&amp;&amp;this.form.security1.checked == 1) { alert('security64 and security32'); } else if (this.form.admin.checked&amp;&amp;this.form.security.checked == 1) { alert('security32 and admin'); } else if (this.form.admin.checked&amp;&amp;this.form.security1.checked == 1) { alert('security64 and admin'); } else if (this.form.admin.checked == 1) { alert('admin is checked'); } else if (this.form.security.checked == 1) { alert('security 32 is checked'); } else if (this.form.security1.checked == 1) { alert('security64 is checked'); } return false; "&gt;Submit&lt;/button&gt; </code></pre> <p>i have replaced alert by location.href="images/download.exe"; to check whether it is getting downloaded by no luck</p> <p>the code that was working for the radio button was </p> <pre><code>&lt;input value="1" type="radio" id="1" name="formselector" onclick="displayForm(this)"&gt; function displayForm(c) { var radios = document.getElementById("1").value; location.href="images/WismanWeb 32 bit.exe"; } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload