DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
thymeleaf pass variable to javascript
<script th:inline="javascript"> var username = [[${session.user.name}]]; </script>
PREVIOUS
NEXT
Tagged:
#thymeleaf
#pass
#variable
#javascript
ADD COMMENT
Topic
COMMENT
Name
4+9 =
Submit