hqfx
02-20-2009, 02:02 AM
Hi
As a user with just enough experience to try and repeatedly fail, I'm resorting to asking for help here.
I have a number of html FILES (one.html ... ten.html) than I want to be able to open (actually by an external program call) WITHOUT opening multiple browser windows or tabs. Each html FILE simply must provide a url "link" to an https://server.somesite
I've tried using frames, iframes, and javascript to get each newly sequential html file to open without multiple browser windows, but without success. Ideally, I would target to the 'MAIN' frame of a frameset. These are not links, but html files. I think it can be done, maybe with javascript. I could even accept the newly opened html file to window.close() right away with javascript (but did really get that working either).
As an example of what I tried, which opens a new browser window/tab:
<html><head><script language="JavaScript">
<!--
function OpenSub()
{
//window.parent.location='https://xx.yyy.com/something';
//-->
}
OpenSub()
</script>
</head></html>
Also tried things like:
top.frames['MAIN'].location.href=
parent.frames.MAIN.location.replace
So:
1) How can I target a frameset (in the same directory) from an html file (not link)?
2) Can I do this using a meta refresh with target? With a javascript body onload? -which I tried and couldn't get working.
3) Can I do this with a <base target="****"> tag?
I'm using Firefox. IE doesn't work well on the sites.
Thanks in advance!
As a user with just enough experience to try and repeatedly fail, I'm resorting to asking for help here.
I have a number of html FILES (one.html ... ten.html) than I want to be able to open (actually by an external program call) WITHOUT opening multiple browser windows or tabs. Each html FILE simply must provide a url "link" to an https://server.somesite
I've tried using frames, iframes, and javascript to get each newly sequential html file to open without multiple browser windows, but without success. Ideally, I would target to the 'MAIN' frame of a frameset. These are not links, but html files. I think it can be done, maybe with javascript. I could even accept the newly opened html file to window.close() right away with javascript (but did really get that working either).
As an example of what I tried, which opens a new browser window/tab:
<html><head><script language="JavaScript">
<!--
function OpenSub()
{
//window.parent.location='https://xx.yyy.com/something';
//-->
}
OpenSub()
</script>
</head></html>
Also tried things like:
top.frames['MAIN'].location.href=
parent.frames.MAIN.location.replace
So:
1) How can I target a frameset (in the same directory) from an html file (not link)?
2) Can I do this using a meta refresh with target? With a javascript body onload? -which I tried and couldn't get working.
3) Can I do this with a <base target="****"> tag?
I'm using Firefox. IE doesn't work well on the sites.
Thanks in advance!