ID:139596
 
Hello again everyone! My recent issue is with the way I want certain Browser messages to close by themselves after a certain number of seconds. Here's my code:
src<<browse(stats,"window=StatSheet;size=250x300;can_close=0")
//test
sleep(20)
src<<browse(null)


Problem description:
Regardless of whether or not can_close is on doesn't (or shouldn't) solve my problem. I read that setting the Body and Options to null will close the Browser, but it only wipes it clean with just a white rectangle staring you in the face. Any reason as to why it doesn't close? Any help is always appreciated, thank you!
Calling browse(null) just makes the contents of the browser to null.

To close out of the window element, you might want to use winshow(player, window, 0).
In response to Maximus_Alex2003
Ahh! Okay! I didn't realize at the time that it was still considered a skin element... slash I still never looked through how winshow() entirely worked... :P Thanks again!
In response to Maximus_Alex2003
Actually, browse(null) will work to close a browser window, if you properly supply the second argument. However that's old 3.5 stuff and winshow() is still the best answer.