Page 1 of 1
open app in new window (not a new tab)
Posted: Wed Jul 19, 2023 7:10 pm
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.
Re: open app in new window (not a new tab)
Posted: Wed Jul 19, 2023 8:52 pm
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())
Re: open app in new window (not a new tab)
Posted: Thu Jul 20, 2023 3:10 pm
by netmaestro
Thanks, I can make that work for me. I appreciate the help!