WebGadget: Links with target="_blank" do not work?
Posted: Fri Sep 04, 2015 2:32 pm
Hello,
I tried this [PB 5.24 LTS, Kubuntu 14.04]:
On Windows, both links are working. On Linux, the second one does not. How to enable this?
Thanks,
Kukulkan
I tried this [PB 5.24 LTS, Kubuntu 14.04]:
Code: Select all
html.s = "<!doctype html><html lang=\qen\q><head><meta http-equiv=\qcontent-type\q content=\qtext/html; charset=UTF-8\q></head>"+
"<body>" +
"<a href=\qhttp://www.purebasic.com\q target=\q_self\q>Open here</a><br>" +
"<a href=\qhttp://www.purebasic.com\q target=\q_blank\q>Open new window</a>" +
"</body>" +
"</html>"
html.s = ReplaceString(html.s, "\q", Chr(34))
path.s = GetTemporaryDirectory() + "test.html"
CreateFile(0, path.s)
WriteString(0, html.s)
CloseFile(0)
If OpenWindow(0, 0, 0, 600, 300, "WebGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
WebGadget(0, 10, 10, 580, 280, "file://" + path.s)
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
Thanks,
Kukulkan