OpenURL Question

I’m trying to shut down music, go to a Web site for a video, then restart the music when the openURL window closes. However, openURL doesn’t seem to pause the code execution; it just pops up on top of whatever is going on. Is there a way to do this? Thanks.

    music("Game Music One:Funk Blue Cube")
    -- Other stuff happens here
    CurrMusic = ( )
    openURL('', true)
    music( CurrMusic )