rom fernando rom fernando - 1 year ago 72
HTML Question

How can I block a repeat action in a button click?

I create a website intro page in HTML. I click a button to redirect the website home page. Now I click two or more times, meaning that the website opens twice or more. I want a home page only. How can I block that button when a home page is open?

Answer Source

If you have a button in a form,

<a href="JavaScript:;" id='submit' >
 <img src= "images/remote_support.png"  width="140px" height="60px" style="position: absolute; top: 450px; left: 1000px;" />

With JavaScript/jQuery just submit form and make

<script src=""></script>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download