How to launch safari browser while running another application?

I have successfully able to put the application in the background and then not able to launch the safari browser and put the url.

Can anybody help me to say how can I open using javascriptExecutor or any other way.