netlog_viewer/netlog_viewer/ui_webui_resources_js_util.js
function appendParam(url, key, value) {
  var param = encodeURIComponent(key) + '=' + encodeURIComponent(value);

  if (url.indexOf('?') == -1)
    return url + '?' + param;
  return url + '&' + param;
}
function appendParam(url, key, value) {
  var param = encodeURIComponent(key) + '=' + encodeURIComponent(value);

  if (url.indexOf('?') == -1)
    return url + '?' + param;
  return url + '&' + param;
}
function appendParam ( url , key , value ) { var param = encodeURIComponent ( key ) + '=' + encodeURIComponent ( value ) ; if ( url . indexOf ( '?' ) == - 1 ) return url + '?' + param ; return url + '&' + param ; }
Creates a new URL which is the old URL with a GET param of key=value.
@param {string} url The base URL. There is not sanity checking on the URL so
it must be passed in a proper format.
@param {string} key The key of the param.
@param {string} value The value of the param.
@return {string} The new URL.
Creates a new URL which is the old URL with a GET param of key = value .