Online Shopping : Computers : Programming : Languages : JavaScript

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

17 of 23 people (74%) 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 ?

Jul 6th, 2009 11:01
khalid khalid, haytham ali, ha mo, Colin Snover, Colin Fraser, Alon Kabalo, http://www.jr7sa.com


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.jr7sa.com
http://www.jr7sa.com/msn
http://www.jr7sa.com/vb
http://www.jr7sa.com/vb/
http://www.jr7sa.com/1
http://www.jr7sa.com/wordpress
http://www.jr7sa.com/nkt
http://www.jr7sa.com/nkt/
http://forums.msryat.org
http://msryat.org
http://www.msryat.org
http://games.msryat.org
http://qtryat.com/vb
http://dir.msryat.org
http://up.msryat.org
http://links.msryat.org
http://vb.3lmbnat.com
http://dir.3lmbnat.com
http://forums.msryat.org/showthread.php?t=26510
http://forums.msryat.org/showthread.php?t=26568
http://forums.msryat.org/showthread.php?t=26511
http://forums.msryat.org/showthread.php?t=26550
http://forums.msryat.org/showthread.php?t=26360
http://forums.msryat.org/showthread.php?t=26066
http://forums.msryat.org/showthread.php?t=25908
http://forums.msryat.org/showthread.php?t=26202
http://forums.msryat.org/showthread.php?t=25927
http://forums.msryat.org/showthread.php?t=25831
http://forums.msryat.org/showthread.php?t=25875
http://forums.msryat.org/showthread.php?t=24183
http://forums.msryat.org/showthread.php?t=26519
http://forums.msryat.org/showthread.php?t=26809
http://forums.msryat.org/showthread.php?t=25924
http://forums.msryat.org/forumdisplay.php?f=99
http://forums.msryat.org/showthread.php?t=28936
http://forums.msryat.org/showthread.php?t=42
http://forums.msryat.org/showthread.php?t=28356
http://forums.msryat.org/forumdisplay.php?f=100
http://forums.msryat.org/forumdisplay.php?f=99
http://forums.msryat.org/forumdisplay.php?f=98
http://forums.msryat.org/forumdisplay.php?f=97
http://forum.4kwt.com
http://5ligi.com
http://games.5ligi.com
http://forum.5ligi.com
http://forums.msryat.org/showthread.php?t=26511