Proper Format for Javascript Alert
AnsweredHi all,
I am trying to create a form action button to trigger a JavaScript alert containing a string of text from a field. I've tried several different options, but I can not get it to work. Here is an example that doesn't work. What is the proper code to display this type of action?
1
-
Official comment
Hi Dan Thale,
you can simply call the alert() function directly like this:
If you want to define a function like you tried, you have to call this function somewhere like this:
Kind regards
skybow Support Team
Please sign in to leave a comment.
Comments
1 comment