1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 function getArgValue(argname)
7 var url = window.location.href;
8 var parts = url.split("?");
13 var arglist = parts[1];
14 var args = arglist.split("&");
15 for (i=0;i<args.length;i++)
17 var parts = args[i].split("=");
18 if (parts[0] == argname)
21 value = unescape(value);