[Question]
  [
Your job is to open a browser window **of the default browser** to <http://codegolf.stackexchange.com>.
Your code must open the browser itself, and cannot rely on an open one.
This is [code-golf](/questions/tagged/code-golf "show questions tagged 'code-golf'"), so the shortest answer in bytes wins.
---
> 
> Moderator note: A large number of answers to this challenge use the URLs <http://ppcg.lol> or <http://ppcg.ga>. These URLs did direct to <https://codegolf.stackexchange.com> at the time, but have since expired. By [this meta discussion](https://codegolf.meta.stackexchange.com/q/25421/66833), they have been allowed to stay, with the note that they are currently invalid.
> 
> 
> 
  
[Answer]
# [Oration](https://github.com/ConorOBrien-Foxx/Assorted-Programming-Languages/tree/master/oration), 41 bytes
Not winning, but sure was fun. As of right now, I'm only 1 bytee behind python!
```
I need webbrowser
Now open "http:ppcg.ga"
```
Explanation:
`I need` compiles to `import $1` with `webbrowser` being the module.
`Now` runs the following command from the module as `module.command` with the arguments of anything following.
So this compiles to:
```
#!/usr/bin/env python3
import webbrowser
webbrowser.open("http:ppcg.ga")
```
I do end up needing the `http:` part though, and it can't be shortened.
[Answer]
# Batch, 17 bytes
Saved 3 bytes thanks to Mego.
```
start www.ppcg.ga
```
This will open in your default browser if you run it from the windows command line.
I think it'll work in Powershell too, but I'm not sure.
[Answer]
##  GNU Emacs, ~~29~~ ~~27~~ ~~14~~ 33 bytes
```
(eww"codegolf.stackexchange.com")
```
The previous answer with a URL shortener was:
```
(eww"ppcg.ga") ;; 14 bytes
```
However:
> 
> Much like ppcg.lol, ppcg.ga has been unregistered, invalidating this answer. But unlike last time, there is no replacement short url. (@lyxal)
> 
> 
> 
[EWW](https://www.gnu.org/software/emacs/manual/html_mono/eww.html) is a browser inside Emacs. The `browse-web` function is an alias for `eww`, and so that makes `eww` the *default browser* in Emacs:
> 
> Your job is to open a browser window of *the default browser* to <http://codegolf.stackexchange.com>.
> 
> 
> 
Thanks to @CoolestVeto, @Jonathan Leech-Pepin and @zyabin101.
[Answer]
# PowerShell, ~~17~~ 16 Bytes
```
saps www.ppcg.lol 
```
Using an even shorter domain provided by Milo.
```
saps www.ppcg.ga
```
---
While `start` is a known alias for `Start-Process` there is another one for `saps`. You can see this from `Get-Alias`. It follows the convention for similar `Start-` and `Stop-` cmdlets.
---
As those URLs no longer exist the only way to make this work is to use the horribly inefficient 36 characters for
`saps http:codegolf.stackexchange.com`
At least we can drop the slashes no problem
[Answer]
# Terminal (OSX), ~~20~~ ~~18~~ 17 bytes
```
open http:ppcg.ga
```
*Saved 2 thanks to CoolestVeto*
[Answer]
# MATLAB, ~~28~~ 25 bytes
```
web www.ppcg.lol -browser
```
* `www` is shorter than `http://` and ensures that the address is processed as a URL
* This is shorter using the implicit function call (which casts inputs as strings) rather than the explicit version `web('www.ppcg.lol', '-browser')`.
* If you are on a OS X, this can be simplified to `web ppcg.lol -browser` as MATLAB will automatically append an `http://` (**21 bytes**)
**Alternatives**:
* On windows this can be shortened to (**19 bytes**)
```
!start www.ppcg.lol
```
* On OS X (**21 bytes**)
```
!open http://ppcg.lol
```
* The following would work in a deployed MATLAB application (**16 bytes**)
```
web www.ppcg.lol
```
* If the built-in browser could be used this could be reduced even further as `http` is implied (**12 bytes**)
```
web ppcg.lol
```
[Answer]
# [AutoHotKey](https://autohotkey.com/), 16 bytes
```
Run www.ppcg.lol
```
[Answer]
# Python, ~~52~~ ~~48~~ ~~47~~ ~~45~~ 44 bytes
Shamelessly borrowing that shortened link.
```
from webbrowser import*;open("http:ppcg.ga")
```
Thanks to CrazyPython for -4 bytes, and Sp3000 for a further one.
Edit: shaved 2 more off thanks to CoolestVeto
Edit: thanks to MD XF for registering ppcg.ga and saving another byte
[Answer]
# Java 7, 151 bytes
```
class P{public static void main(String[]a)throws Exception{java.awt.Desktop.getDesktop().browse(new java.net.URI("http:codegolf.stackexchange.com"));}}
```
Java is not the best language for golfing...
Here's the same program in a more readable format:
```
class P {
    public static void main (String[] a) throws Exception {
        java.awt.Desktop.getDesktop().browse(new java.net.URI("http:codegolf.stackexchange.com"));
    }
}
```
Saved 2 bytes by removing `//` in the URI/L~~, and another byte by switching to `.ga` from `.lol` (indirectly thanks to @Milo)~~
[Answer]
# Bash, ~~24~~ 22 bytes
```
xdg-open http:ppcg.lol
```
Not as short as some others. `firefox ppcg.lol` is shorter, but it doesn't meet question spec.
[Answer]
# Java 8, ~~115~~ 112 bytes
```
interface P{static void main(String[]a)throws Exception{java.awt.Desktop.getDesktop().browse(new java.net.URI("http:ppcg.ga"));}}
```
Java is not the best language for golfing...
Here's the same program in a more readable format:
```
interface P {
    static void main (String[] a) throws Exception {
        java.awt.Desktop.getDesktop().browse(new java.net.URI("http:ppcg.ga"));
    }
}
```
Saved 2 bytes by removing `//` (thanks @CoolestVeto), and another byte by switching to `.ga` from `.lol` (indirect thanks to @Milo)
[Answer]
# [Pylongolf](https://github.com/lvivtotoro/pylongolf), 11 bytes
```
"ppcg.lol"p
```
Pushes ppcg.lol into the stack then `p` opens it.
[Answer]
# JavaScript, 34 bytes
```
require('open')('http://ppcg.lol')
```
Uses Node.js
[Answer]
# Applescript, 28 bytes
* 3 bytes saved thanks to @CoolestVeto.
```
open location"http:ppcg.lol"
```
[Answer]
# Mathematica, 28 bytes
```
SystemOpen@"http://ppcg.lol"
```
[Answer]
# R, 26 bytes
`shell.exec("www.ppcg.lol")`
I don't know of any shorter way to do this in R.
[Answer]
# Actionscript 3, 117 bytes
```
package{import flash.display.Sprite;public class A extends Sprite{function A(){navigateToUrl("ppcg.lol","_blank")}}}
```
Like Java, this is not a great golfing language. Here's the code with formatting:
```
package
{
    import flash.display.Sprite;
    
    public class A extends Sprite
    {
        function A()
        {
            navigateToUrl("ppcg.lol", "_blank")
        }
    }
}
```
[Answer]
# Rebol 2, 16 15 bytes
```
browse"ppcg.ga" 
```
if you accept an error before opening the page on Linux, no error on Windows
**20 bytes** without an error
```
browse http:ppcg.lol
```
[Answer]
# Perl 5, ~~66~~ ~~57~~ 76 bytes
Should work everywhere, but needs that import :(
8 bytes saved with @msh210 comment.
```
use Browser::Open open_browser;open_browser"http:codegolf.stackexchange.com"
```
Also, for funsies :
### Perl 5 (Windows), ~~34~~ 48 bytes
```
system "start http://codegolf.stackexchange.com"
```
### Perl 5 (Unix), ~~31~~ 49 bytes
```
system "xdg-open http:codegolf.stackexchange.com"
```
[Answer]
# [Red](http://www.red-lang.org), 40 bytes
```
browse http://codegolf.stackexchange.com
```
[(Don't) Try it online!](https://tio.run/##K0pN@R@UmhId@z@pKL@8OFUho6SkwEpfPzk/JTU9PydNr7gkMTk7tSI5IzEvPVUvOT/3/38A "Red – Try It Online")
`ppcg.ga` no longer works, so needed to include the full domain name. But its funny that Red has its own URL data type!
[Answer]
# Factor, ~~38~~ ~~36~~ ~~26~~ 29 bytes
```
[ "http:t.ly/-E-J" open-url ]
```
I didn't know one could golf-off the `//` in the protocol.
[Answer]
# RFO-BASIC, 22 bytes
```
BROWSE "http:ppcg.lol"
```
Read about RFO-BASIC at [laughton.com](http://laughton.com/basic).
[Answer]
# VBScript, 57 bytes
I used to have lots of fun creating tiny programs in VBScript, back in 2010.
I've remembered this language and used the code on: <https://stackoverflow.com/a/13401872/2729937>
It still works on Windows 7, at least.
```
set S=CreateObject("WScript.Shell")
S.run("www.ppcg.ga")
```
This is a bit different from the usual `start www.ppcg.lol`, in the sense that it executes the `www.ppcg.ga` directly, with an implicit `start`.
An alternative way would be `"cmd.exe /C start www.ppcg.ga"`.
[Answer]
# VBA, 84 bytes
```
Sub Main()
ThisWorkbook.FollowHyperlink("http://codegolf.stackexchange.com")
End Sub
```
[Answer]
# [Zsh](https://www.zsh.org/) on MacOS, 19 bytes
```
open http:t.ly/-E-J
```
[Try it online!](https://tio.run/##qyrO@P8/vyA1TyGjpKTAqkQvp1Jf11XX6/9/AA "Zsh – Try It Online")   (`t.ly` is a URL shortener).
[Answer]
# Common Lisp, 31 bytes
```
(ext:shell "open http:ppcg.ga")
```
Note: This worked at the time of writing. The domain `ppcg.ga` has since expired, making this answer no longer valid.
[Answer]
# C#, 33 bytes
```
Process.Start("http://ppcg.lol");
```
Opens the default browser to the web address
[Answer]
# VB.NET, ~~32~~ 30 bytes
```
Process.Start("http:ppcg.lol")
```
[Answer]
# Game Maker Studio, 26 bytes
```
url_open('http://ppcg.ga')
```
[Answer]
# PHP (OSX), 33 bytes
```
<?php exec("open http:ppcg.lol");
```
# PHP (Windows), 34 bytes
```
<?php exec("start http:ppcg.lol");
```
]