Page 1 of 1

how can i redirect to another page ?

Posted: Sat Oct 29, 2016 8:20 pm
by skinkairewalker
hi everyone !
how can i redirect to another page in another server ?

example >
this is my page > mywebsite.com/index.html
so when i click in some button go to another page like google.com ?

Re: how can i redirect to another page ?

Posted: Sat Oct 29, 2016 9:38 pm
by falsam
An example with the window.open () function.

Code: Select all

Declare RunProgram()

OpenWindow(0, 0, 0, 0, 0, "", #PB_Window_Background)
HyperLinkGadget(0, 10, 10, 100, 22, "http://google.com", RGB(46, 139, 87))

BindGadgetEvent(0, @RunProgram())

Procedure RunProgram()
  Protected link.s = GetGadgetText(EventGadget())
  ! window.open(v_link, "_self");
EndProcedure

Re: how can i redirect to another page ?

Posted: Sat Oct 29, 2016 10:00 pm
by skinkairewalker
Thanks you very much Falsam ^^

Re: how can i redirect to another page ?

Posted: Sun Sep 24, 2017 8:36 pm
by CONVERT
Thank you so much, Falsam!

It works. I use "_blank" instead of "_self" to open in another tab.