ID:167010
 
How do you remove close and resize at the top of a window u pop up in your game, an add a close html link at the bottom?
First of all, you do what you should have done, which is to hit F1 in Dream Maker and look up the browse() command. In the documentation, you will see instructions for how to hide the close button at the top and keep the window from resizing.

Closing the window using a link at the bottom is fairly simple. There may be a Javascript way to do it. Look in the reference here.

Or, you can use a BYOND link to do it, like so:

client/Topic(href_list)
..()
if(href_list.Find("close"))
src << browse(null,"window=[href_list["close"]]")


Then, in the HTML in your popup, just add

"<a href='?close=((window name))'>Close Window</a>"


Make sure that, in the future, you check the reference before asking questions -- it shows that you care about getting answers, not just having me do the thinking for you. (And if you did check the reference, say so -- I only assume that you didn't check it because I know that part of your answer can be found there)
In response to PirateHead
Sorry, just thought it wouldn't be there. But im gettin ths error, href_list.Find endefined proc
In response to Evidence
Try making it be list/href_list instead of just href_list.
In response to PirateHead
Still same error, i put if("close" in href_list)
and there is no errors, but it just doesnt work, this i what i got

client/list/Topic(href_list)
..()
if(href_list.Find("close"))
src << browse(null,"window=[href_list["close"]]")


<a href='?close=playersonline'>Close</a>
In response to Evidence
href_list[]

simple....