set window title "test"
setup gui "test","YOUR INIT CODE HERE"
explorer = free gadget()
create gadget explorer explorer
set gadget explorer,5,5,screen width()-10,screen height()-10
If file exist("a.htm") then delete file "a.htm"
open to write 1,"a.htm"
write string 1,"<html>"
write string 1,"<head>"
write string 1,"<title>a page</title>"
write string 1,"</head>"
write string 1,"<body>"
write string 1,"<div>some text</div>"
write string 1,"<div><a href="+chr$(34)+"http://forum.thegamecreators.com/?m=forum_view&t=35560&b=7"+chr$(34)+">a link</a></div>"
write string 1,"<div><img src="+chr$(34)+"http://forum.thegamecreators.com/g/banners/39.jpg"+chr$(34)+"></div>"
write string 1,"</body>"
write string 1,"</html>"
close file 1
open url explorer,get dir$()+"\a.htm"
`it appears to be fine to delete the file after using open url
delete file "a.htm"
do
loop
can i scream