Please explain: "when I click the link it automatically changes the URL in the text bar?"
Which link and where? Are you talking about links that are rendered within the browser or any GUI/DX text link?
The code provided by LopSided_ should work absolutely fine.
local theBrowser = guiGetBrowser(browser) -- Function of the Browser
addEventHandler("onClientBrowserCreated", theBrowser,
function()
loadBrowserURL(source,"https://www.youtube.com")
end )
function geturl(targetURL)
guiSetText(addressBar, getBrowserURL(targetURL))
end
addEventHandler("OnClientBrowserNavigate",resourceRoot, geturl)