Clear a Flare HTML5 Search Field with the Escape Key

If you want the search field in Flare HTML5 output to clear when escape is pressed, add the following to the toolbar JavaScript.

If there is already a window.onload assignment, just add the inner part to the existing assignment.



2 thoughts on “Clear a Flare HTML5 Search Field with the Escape Key

  1. Steve Murphy

    Hi Tom,
    Great post, thank you. Can you please let me know to access the toolbar JavaScript? I’m still fairly new to Flare.


    1. Thomas Tregner Post author

      Thanks for reading!

      There is a help topic online and in the application.

      Other resources are listed on MadCap’s website.

      There is also a JavaScript chapter in the companion book to this blog.


Leave a Reply to Steve Murphy Cancel reply

Your email address will not be published. Required fields are marked *

HTML tags are not allowed.

228,684 Spambots Blocked by Simple Comments