navigateToURL syntax

I would like to try replacing getURL with navigateToURL, but I’m unsure if they really do the same thing, and I can’t seem to find an example of the syntax I need to use.

Please post thoughts. Thanks!