javascript - How to make onclick event occur before onblur? -


I have 2 elements, one with onclick = "... ... and onfocus =" ... " Anchor anchor is toggled through the input button, so when the button is in focus, the anchor is displayed and when it loses focus, the anchor is hidden. Is there any way on which I can start without any Can I use the onclick event on anchor?

  Input (type = "radio", name = "sample", value = str (sample [id ']), id = "s" + ST (Sample ['id']), Onfocus = 'Javascript: Toggle Visibility ("% Stogla");'% Sample ['id'], onblur = 'Toggle Visibility ("%" sample [' id ']), Style = "display: none; float: right; padding-left": 10px; text-decoration: none; ", href = 'do something')    

Try using omsdown instead of

onclick .

Comments