←  Code Block

Fallout Studios Forums

»

[javascript] Onclick / Onblur

Slightly Wonky Robob's Photo Slightly Wonky Robob 27 Jan 2008

I was waondering if its possible to use these at the same time.. here's the problem.

I've got an onblur event on an input field that hides a div, but only if when 'blurring' your not clicking on said div

I have no idea how to accomplish this.. any suggestions?

EDIT: Found a way around this by giving the hide command a small delay.. although it would still be nice to know if there is a way of accomplishing this in the original way, because more than likely i'll need it sometime in the future
Edited by Bob, 27 January 2008 - 01:08.
Quote