if <SomethingHappen> then
sAlertWindow = "onload=""{window.alert('alerttext');}"""
else
sAlertWindow = ""
end if
<BODY <%=sAlertWindow%>
I hope it will help.
Erik
"{window.alert('Eén of meerdere velden [boven in het " & _
"scherm in rood aangegeven] hebben een overschrijding van de veldlengte. " & _
"Maak de betreffende teksten korter en druk opnieuw op opslaan. " & _
"Op dit moment zijn de ingevoerde gegevens nog NIET opgeslagen !');}"""
Syntax for a javascript alert is (simplified version of ErikL's post):
alert('alertText');
and if you want a line break somewhere in the middle of the message, just just the \n to make it break there... that character sequence works like the <br> does in html.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.