Page 1 of 1

How can I insert an iframe object?

Posted: Fri Mar 18, 2016 10:20 pm
by elread
How can I insert <iframe>...</iframe> to the spiderbasic page? For example, Youtube iframe.

Re: How can I insert an iframe object?

Posted: Fri Mar 18, 2016 10:27 pm
by Arbrakaan
Hi elread,

Use WebGadget() :

Code: Select all

OpenWindow(0,0,0,WindowWidth(0),WindowHeight(0),"iFrame",#PB_Window_Background)
WebGadget(1, 10, 10, 500, 500, "https://www.youtube.com/embed/ohmajJTcpNk")

Re: How can I insert an iframe object?

Posted: Sat Mar 19, 2016 7:22 am
by elread
Oh, that was easy :) Thanks.
But to be precise, I think I need to write here another way that we can use <iframe>:
OpenWindow(0,0,0,WindowWidth(0),WindowHeight(0),"iFrame",#PB_Window_Background)
WebGadget(1, 10, 10, 500, 500, "http://127.0.0.1:9080/youtube.html")