Thymeleaf conditional JavaScript function call

Viewed 4189

I'm developing a Spring Boot web application with Thymeleaf as the template engine.

I want to call a JavaScript function as soon as the page loads, if a specific attribute is present in the Model.

I did some research and I found a way to call a function but with clicking on a span etc., which doesn't do the job for me.

Thanks in advance.

1 Answers
Related