Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
var CustomEventHandlers = {
	    setup: function (el) {
		 if (CustomView.hasClass(el, 'detectbrowser')) {
		    el.value = navigator.userAgent
    
               UberController.valueChangeObserver({target:document.getElementsByName('Browser')[0]}, document.getElementsByName('Browser')[0].parentNode); 
		 }
	    }
	} 
Note

Replace the name Browser in the above JavaScript with the name of the text field that you are using.

...