Changing scene automatically

How would i change a scene? I looked up ‘scene’ in the scripting reference and i found a way to change a scene in the editor. however, I want to figure out how to do this to work in the web player and in the editor alike. any help?

you need a script. this is the code line: Application.LoadLevel(>scene number<);
the scene number is from the build settings.