Topic: Button Image Focus Problem Pages that link to <a href="https://ozoneasylum.com/backlink?for=29746" title="Pages that link to Topic: Button Image Focus Problem" rel="nofollow" >Topic: Button Image Focus Problem\

 
Author Thread
Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

IP logged posted posted 12-05-2007 04:00 Edit Quote

I have an image button that simply pops up a hidden layer...
After the image button is clicked it remains focused, leaving the dashed rectangle around it. So how do I move the focus off of the button immediately after the click?

Thanks,

Karl..

zavaboy
Paranoid (IV) Inmate

From: f(x)
Insane since: Jun 2004

IP logged posted posted 12-05-2007 04:33 Edit Quote

Add this to your button:

code:
onclick="this.blur()"


Good?

Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

IP logged posted posted 12-05-2007 05:57 Edit Quote

That works : )

Suho1004
Maniac (V) Mad Librarian

From: Seoul, Korea
Insane since: Apr 2002

IP logged posted posted 12-05-2007 09:15 Edit Quote

Huh. I always wondered if there was a way around that. Neat.


___________________________
Suho: www.liminality.org | Cell 270 | Sig Rotator | the Fellowship of Sup

reisio
Paranoid (IV) Inmate

From: Florida
Insane since: Mar 2005

IP logged posted posted 12-05-2007 14:12 Edit Quote

So you're going out of your way to break the UI...why?

Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

IP logged posted posted 12-07-2007 09:58 Edit Quote
quote:

reisio said:

So you're going out of your way to break the UI...why?




Was this directed towards me?

zavaboy
Paranoid (IV) Inmate

From: f(x)
Insane since: Jun 2004

IP logged posted posted 12-08-2007 01:23 Edit Quote

If it's just the dotted outline you want gone, I'd just use this CSS on it:

code:
outline:none;


Works even if JavaScript is disabled, unlike my previous example. Though it doesn't work in Mozilla, read more.

reisio
Paranoid (IV) Inmate

From: Florida
Insane since: Mar 2005

IP logged posted posted 12-08-2007 07:47 Edit Quote
quote:
Karl said:

Was this directed towards me?


Yup.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu