Hide URL Link
The following tricks will help you to hide the link when mouse over the <a> tag link. It is the very simple tricks to hide this URL.If you want to disable put the href="javascript:void(0)" instead of href="http://www.google.com" and write the url inside the onclick event like below.
Example:
12
<a href="javascript:void(0)" onclick="location.href='http:\\www.google.com'">Link</a>
<a href="javascript:void(0)" onclick="location.href='http:\\www.google.com'">Link</a>
Example Program:- (Editor)
Show/Hide Understandable Code
<html>
<head>
<Title>Hide the URL from Address bar</title>
</head>
<body>
<a href="http://www.google.com">Normal Link</a>
<a href="javascript:void(0)" onclick="location.href='http://www.google.com'">Hide Link</a>
</body>
</html>
Output:-
ليست هناك تعليقات:
إرسال تعليق