faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

15 of 21 people (71%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

How do I get rid off the dashed focus when selecting an element and draging it ?

Apr 4th, 2008 20:32
ha mo, Colin Snover, Colin Fraser, Alon Kabalo,


I'm not sure if you're talking about dragging objects, selecting text 
and images, or clicking on links, so I'll do all three.
If you're referring to dragging objects, you can't stop it.
If you're referring to selecting text and images, you can add this 
simple code to your <body> tag:
onSelectStart="return false"
Of course, like a lot of Javascript, this code won't work in Netscape. 
Sorry.
If you're referring to the ugly border that appears around links, add 
this code to your <a> tags:
onFocus="this.blur();"
Hope this helped!!
//cs2k1
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com