how to pass value from one java script to another javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AM ASIF
    New Member
    • Sep 2011
    • 3

    #1

    how to pass value from one java script to another javascript

    Code:
    <script type="text/javascript">
    a = mySplitResult[0];
    </script>
    
    
    <script type="text/javascript">
    function initialize() {
    var myLatlng = new google.maps.LatLng();
    </script>
    here value come in a, then how i pass this' a' as argument second javascript function initialize
    Last edited by Dormilich; Sep 13 '11, 05:09 AM. Reason: please use [CODE] [/CODE] tags when posting code
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    as long as both script are at the same page, each (public) variable is accessible.

    Comment

    Working...