WebFOCUS amper variables are resolved to their text representation before the -HTMLFORM is generated on the web server, so within JavaScript these variables will be simply "the text". Below is a very simple example:
-SET &VARMSG='alert("The message !"';
-HTMLFORM BEGIN
<html>
<head>
<script language="javascript">
<!--
function msgAlert() { &VARMSG
}
// -->
</script>
</head>
<body onLoad="msgAlert()">
</body>
</html>
-HTMLFORM END
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.