ID:266703
 
How would I make it when you login to the game a website pops up under the browser tag automaticly
usr<<link("http://www.webpage.com")
In response to FireEmblem
actually it's usr << browse('FILE.html') if you want to show an HTML file you have on your computer. Also, you konw that http://www.webpage.com is actually a website? How silly.
In response to Garthor
Garthor wrote:
actually it's usr << browse('FILE.html') if you want to show an HTML file you have on your computer. Also, you konw that http://www.webpage.com is actually a website? How silly.

There's actually cause to use both in a game. In Tanks, for instance, you're taken to the Tanks site rather than a file that's distributed with the game.

Lummox JR
In response to Lummox JR
That just got me to think of something. link should return a true or false depending on if it can actually get to the website. That way, if the website is down, you can just send a local file.
In response to Garthor
In response to FireEmblem
That's what I said..
In response to Lummox JR
If you want display a web based file in the popup browser, you have to use a slightly more convoluted method:

src << browse("<META HTTP-EQUIV=\"Refresh\" CONTENT=\"0; URL=http://shadowdarke.byond.com/tt/ manual.html\">","window=BTGmanual;")

I wonder why Dantom didn't include the Options parameter for link() as they did for browse().