You can set the hyperlink's Disabled attribute to true and false to determine whether the hyperlink can be clicked
For example:
bai du
The above means that you don’t want bai du’s hyperlink to take effect, but when click Without any constraints and judgments, when you click Baidu, it will naturally jump to the Baidu page. This is the bug of disabling attributes of hyperlinks in HTML
You can add the following js constraints to determine whether the hyperlink can be used
The following bug solution provided by Microsoft:
With the help of global variables, use other buttons to change the disabled attribute to get disabled Effect of the attribute.;
BUG: The DISABLED attribute no longer disables hyperlinks
Although the DISABLED attribute is set to True a hyperlink is in the following,
Where do you want to go today?
Users can still click the hyperlink and Internet Explorer navigates to the selected page.
To resolve this issue, set the onclick event of the hyperlink to return true or false based on the current execution context. The following code sets the value of a global Microsoft JScript variable to true or false , depending on the button click. The DISABLED property of the target hyperlink object is updated so that it can properly communicate its disabled state to other objects and scripting functionality on the page.
Reference: http://support.microsoft .com/kb/253579/zh-cn