Dashboards & Visualizations

HTML: Make panel clickable for hyperlinking

jedatt01
Builder

Can someone tell me how in HTML I can make an entire panel clickable so when clicked it takes you to a specified hyperlink?

Tags (2)

jedatt01
Builder

Figured it out myself.....just had to reach way back to web development days. Will answer to share what I did.

On the div tag that defines the dashboard panel you want to be clickable....add an onclick

<div class="dashboard-panel clearfix" onclick="myhref('http://mysplunkserver:8000/en-US/app/next_level_dashboard');">

Then create a javascript handler for the onclick

<script type="text/javascript">
        function myhref(web){
        window.location.href = web;}
</script>
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...