url_open refreshing in the same window and tab

camerakid

Member
Hey Guys,

I'm testing a small desktop application that should open the default browser a website on a computer and after a few seconds it would refresh the same window but not opening new windows or tab.

I have tried all the url_open / url_open_ext (_self, _top etc.) functions but for me it always opens a new tab.(in mozilla and opera)

It really works the same in 1.x and 2.x too.

Is there a way to keep the complete browsing in the same window at all times?

Maybe it is a silly idea I'm just testing stuff :)

Thanks.

Attila
 

YellowAfterlife

ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ
Forum Staff
Moderator
I don't think you can, moreso considering various possible browsers on the user's end.

Could you add a bit of code to the page to auto-refresh itself (document.location.reload() or equivalent), or, if it's an external website, have a page with an iframe that gets refreshed?
If it needs to communicate with the GM app, you can use a raw TCP server to serve HTTP requests (the format is very simple)
 
Top