Hello all again,
Can anyone tell me how do I pass one variable from one function to the other?? I tried this:
but doesn't work.Code:<script ...> function test1(){ var hello = "Hello World!!!"; alert('from function one '+hello); test2(); } function test2(){ alert(hello); } </script>
do I use this??:
or this:Code:function test1(){ var hello = "Hello World!!!"; alert('from function one '+hello); test2(hello); } function test2(hello){ alert(hello); }
Code:hello = "Hello World!!!"; function test1(){ alert('from function one '+hello); test2(); } function test2(){ alert(hello); }




Reply With Quote

Bookmarks