Announcement

Collapse
No announcement yet.

How to make an HTML Image clickable?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to make an HTML Image clickable?

    I never needed to do this before, and always just assumed that it could be done, but how the heck do I make a user defined field/HTML Image clickable?

    I really want it to run some javascript, cuz I need to do some client side tweaking when it is clicked.

    I can see where it can be linked to another app. Not good for my needs.

    I could force HTML code into it from javascript (innerHTML). Really messy.

    I cannot believe that there is not an easy way to make it clickable via scriptcase.

    Dave
    Last edited by daveprue; 11-24-2014, 08:56 AM.
    Dave Prue
    Code Whisperer
    Lahar International Corp
    www.lahar.net

  • #2
    Hi,
    create a custom field of type label.

    "<img src='path_to_your_image.png' onclick='my_js_function()'/>";

    jsb

    Comment


    • #3
      jsbinca,

      Worked good, thanks!

      Dave
      Dave Prue
      Code Whisperer
      Lahar International Corp
      www.lahar.net

      Comment

      Working...
      X