Total members 11867 |It is currently Sun Jan 23, 2022 5:31 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





removing focus border from a HTML element, in this example we use css and html to show to remove focus border from link tag. you can see this by using Tab key button.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
<
html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<
head>
<
style type="text/css">
.
hidefocus:focus {
outline: none;
}
</
style>
</
head>
<
title>
hidefocus attribute usage at link tag 
</title>
<
body>

<
table>
<
tr>

<
td>
Notice that after you click no focus border is created around the link 
and then back to previous page
</td>
<
td>
<
a class="hidefocus" href="http://www.codemiles.com">Link without focus</a>
</
td>
</
tr>
<
tr>
<
td>
Notice that a focus border is created after you click 
and then back to previous page
.
</
td>
<
td>
<
a href="http://www.codemiles.com">Link with focus</a>
</
td>
</
tr>
</
table>
</
body>
</
html>  
 




_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : removing focus border from a HTML element
 Show hint when focus on html element using JQuery     -  
 Get the position of HTML element using JQuery     -  
 How to make html element hidden using CSS     -  
 Change and get html content of element     -  
 opacity of HTML element- transparent     -  
 Remove HTML element or Delete its content     -  
 Get Width and Height -Inner and Outer for HTML element     -  
 checking if a HTML element is visible or hidden under JQuery     -  
 Removing elements from array list with the iterator     -  
 Mile200: Removing Username, Password & Login from Header     -  









Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com