Custom user URL

I’m looking for the best method for a user to enter a URL and the page will load for the user. Their is a text box already but how the heck do I get the user string to ( say google ) to open safari with thier queiry with openUrl? Thanks

openURL(url) opens the page…

@JakAttak, so like

url = "" 

And put that in my code

yup. make sure you don’t forget the http:// or it won’t work