Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

call javascript-function from a button

885201Dec 27 2011 — edited Dec 27 2011
Hi,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 24 2012
Added on Dec 27 2011
4 comments
1,681 views