0

I create the html for Label & text box and OK button.

I just pass parameter from the javascript like that

../test/Html/MWD.Numeric.html?id=1.0000

I would like to set that id value in my text box @html.

How to set the id in text box. When I updated that id in html, I would like to update in parent screen.

How to do? Please kindly guide me. Thank in advance.

عثمان غني
  • 2,786
  • 4
  • 52
  • 79
Naing Lay
  • 29
  • 1
  • 4
  • 1
    possible duplicate of [How can I get query string values in JavaScript?](http://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript) – ReeCube Mar 12 '14 at 07:58
  • No . I would to get value in html. Not Javascript – Naing Lay Mar 12 '14 at 08:05
  • 1
    far as I know, it's not possible in html but you can use the – ReeCube Mar 12 '14 at 08:07
  • You need to use the `encodeURI(..)` to pass the URL as a parameter. – Human Being Mar 12 '14 at 09:39

1 Answers1

0

duplicate of How can I get query string values in JavaScript?

function getParameterByName(name) {
    name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
    var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
        results = regex.exec(location.search);
    return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); }
Community
  • 1
  • 1
lordkain
  • 3,061
  • 1
  • 13
  • 18