![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Im trying to prevent the user from clicking any other links on my page when the user have selected/clicked a href once. Sometimes it takes a while before the next page loads so some user will try clicking other links or the same link. I can prevent this when i use buttons by calling onclick and in a javascript getElementsByTagName("input") and then check the type to be type of "button" or "submit" which i then disable. It works. This also works for href html tags by calling onclick and in a javascript remove all href, BUT it also stops everything, even the request that is about to happen. If i use disable getElementsByTagName("a") on href like with buttons it does not get unclickable just get a grey color but you can click on it. Any workaround to this? This is a seriuos web app so I want the solution where i disable ALL links on my page so it is not possible to click on any after the first time. All the links is NOT in a form only links using <a href="gosomeplace" click this link</a> . |
#3
| |||
| |||
|
|
Good idea if I wanted to display the message over the hole page, but I think it is a bit extreme and will be the last choice if nothing else solves this problem. There must be someway to disable everything without changing the look of the page. |
![]() |
| Thread Tools | |
| Display Modes | |
| |