• Nike free run 2 pink
  • Nike free 5.0 kids
  • Oakley sunglasses discount
  • CodeAve.com CodeAve.com - JavaScript - Navigation
    ·Document Info
    ·Script Writers
    ·What's New?
    Mail List


  • Retro 3 jordans
  • Jordan 13 retro
  • Nike free 5.0

  • Passing Multiple Variables via Links
  • Air jordan 11 low
  • New Balance 996
  • Ray ban vintage sunglasses
  • Variables can be passed to JavaScript functions in a number of ways including hyperlinks. In order to pass multiple values from a link to a JavaScript function the link must be set to the function name and the variable values must be placed in parenthesis and single quoted similar to the following convention javascript:funtion_name(‘variable_value1’,’ variable_value2’) The following example contains links to a JavaScript alert box function that will display the two variables being passed via the link. Place your mouse pointer over any of the links and you will notice the values that are being passed to the JavaScript function.
    View the Output
    Text View
    Print View
    Mail this Link
    Download the Code

    <body bgcolor="#FFFFFF">
    <title>CodeAve.com/JavaScript - Passing Multiple Variables via Links</title>

    <script language=JavaScript>
    // The funtion named the_test will assign variable A
    // to the first comma-delimited value it encounters and B
    // to the second value it finds

    function the_test (a,b)

    // An alert box to show the values A and B have been assigned
    // via the hyper link
    alert('A=' + a + ' \nB=' + b);

    <a href="javascript:the_test('first_value','second_value')">first_value, second_value</a>
    <a href="javascript:the_test('Bugs Bunny','Daffy Duck')">Bugs Bunny, Daffy Duck</a>
    <a href="javascript:the_test('1','2')">1, 2</a>





    ASP: What's New? | Articles | Script Writers | Database Display | Read/Write
    Server Variables | Response Objects | Random Events | Miscellaneous
    HTML: Forms | Hyperlinks | Headers | Tables | Hyperlinks | Headers | Text Display
    JavaScript: Document Info | Forms | Images | Navigation | Script Writers
    CSS: Basics | Page Display | Text Display | Script Writers | Miscellaneous
  • 2014 michael kors
  • air max women 2013
  • 2014 michael kors
  • air max 2014
  • oakley glasses
  • oakley glasses

  • Maps: Map Script Writers | Bing Maps | Google Maps
  • bottes fr
  • ugg boot
  • Privacy Statement

    CodeAve.com is hosted by MyHosting.com
    Donate Food Online with a Mouse Click at TheHungerSite.com
    Donate Land Online with a Mouse Click at TheRainForestSite.com
    © 1999 - 2019 CodeAve.com
    All Rights Reserved

    jordan 11 gamma Nike KD VI lebron 11 low