The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
Disable form Submission when JS disabled
Okay, I am trying to disallow an user to submit the form when JS is disabled. This is to circumvent a bug where clicking submit multiple times produces unwanted effects.
I am currently using the following code: HTML Code:
<form action="script.php" method="post" onsubmit="return disable_form(this);"> <!-- teh HTML --> <script type="text/javascript"> document.write('<input type="submit" name="submit" class="button" value="Submit" accesskey="s" />'); </script> <noscript> You will be unable to perform an action until you either enable JavaScript in your browser, or get a modern browser. </noscript> <!-- teh HTML --> </form> Is there anything I can do to combat this? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|