call javascript-function from a button
885201Dec 27 2011 — edited Dec 27 2011Hi,
I want to call the following javascript-code with a button:
<script type="text/javascript">
function hello(msg)
{
alert('hello ' + msg);
}
</script>
This code is declared in the header-section of the page.
I call this function with a button.
Redirct to URL:
hello('Tom');
The following javascript-Error appears:
Fehler: missing ) after argument list
redirect('hello('Tom');%0D%0A');
Can anyone tell me what I do wrong ?
greetings, Andre