I want to trigger a JavaScript function through changing HTML code.
This is what I do:
- There's a webpage with a button
- I click on that button which triggers a JavaScript function
- That function generates parameters which are put in the URL
- I retrieve those parameters from the URL in my serverside code which is made in Windev
- Windev generates a result which is added to the HTML code through regenerating the page
The result can be positive (in which case it's good), but if the result is negative (shows an error) then I want to trigger a JavaScript function from my Windev code. I wanted to do this by adding a call to the function in the HTML code through adding it from Windev.
So how do I trigger a JavaScript function in HTML? (Without using a button!)