Launch Website URL on User's Default Browser

Discussion in 'Programming' started by movvadinesh, Feb 1, 2008.

  1. #1
    This is how to launch a site you enter specifically OR the user enters.. using their default browwser.

    Code:

    Shell "explorer http://www.google.ca"

    ^^^ That is NOT it. This code ONLY launches Internet Explorer. what if they are using opera or firefox??...

    Code:

    OpenURL "Http://www.google.ca/"

    ^^^ That is IT. Use this to open that in ANY browser, as long as it is the user's default.

    As for the user entering the address, just use:

    Code:

    OpenURL Text1.Text
     
    movvadinesh, Feb 1, 2008 IP