open app in new window (not a new tab)

Just starting out? Need help? Post your questions and find answers here.
netmaestro
Posts: 7
Joined: Tue Feb 25, 2014 10:31 am

open app in new window (not a new tab)

Post by netmaestro »

I have a spiderbasic web app that I would like to open in its own browser window of a specific size (900x500). I have no idea how to do this or even if it can be done. Any help appreciated.
User avatar
Peter
Posts: 1197
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: open app in new window (not a new tab)

Post by Peter »

Code: Select all

window.open(url, target, windowFeatures)
For more informations: https://developer.mozilla.org/en-US/doc ... indow/open

Code: Select all

Procedure ButtonGadgetEvent()
  ! window.open("https://cataas.com/cat/says/Meow!", "Meow!","width=400,height=400");
EndProcedure

OpenWindow(0, 0, 0, 300, 200, "Test", #PB_Window_ScreenCentered)
ButtonGadget(1, 10, 10, 280, 180, "Meow!")
BindGadgetEvent(1, @ButtonGadgetEvent())
netmaestro
Posts: 7
Joined: Tue Feb 25, 2014 10:31 am

Re: open app in new window (not a new tab)

Post by netmaestro »

Thanks, I can make that work for me. I appreciate the help!
Post Reply