JSFiddle - React, Tailwind, and code Playground
by Nibin George
HTML
<input type="text" id="username"/>
JavaScript
url = 'http://example.com/outlooker/company/place'; //Example
//url = window.location.href; //In your case
var result= url.split('/');
var Param1 = result[3];
var Param2 = result[4];
var Param3 = result[5];
alert(Param1);
alert(Param2);
alert(Param3);
//Here sets the value of the input field with id="username"
var elem = document.getElementById("username");
elem.value = Param1;