Link to home
Start Free TrialLog in
Avatar of trinh
trinh

asked on

loading a pre-build HTML file from CGI

How do you load an exiting HTML page from CGI that
would open a new page on screen rather than replacing
the existing page of the current browser.
My current script does the following:
printf("<html><head><meta-equiv='refresh' content='0; url=
http://mypage.html'></head><body</body></html>");
of course it works but it replaces my current page on the
browser. I want it on a separate popup screen without
browser's toolbar and menu (like an applet popup).
Avatar of wisdom042597
wisdom042597

Try adding target="_new" to the original A HREF for the script reference (assuming it's clickable).  This will open a new browser instance when the script URL is run.

Avatar of trinh

ASKER

No, Adding the target tag does work. In fact, it hangs
the browser indefinitely.
Try outputting a mime redirect header that references a static page, as in:

Location: http://xxxxxxx
(extra carrage return)


Avatar of trinh

ASKER

Still doesn't work
ASKER CERTIFIED SOLUTION
Avatar of MaDdUCK
MaDdUCK

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
or just "window.open('/path/to/other/page.html'); return false"