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='ref resh' 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).
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-
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).
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.
ASKER
No, Adding the target tag does work. In fact, it hangs
the browser indefinitely.
the browser indefinitely.
Try outputting a mime redirect header that references a static page, as in:
Location: http://xxxxxxx
(extra carrage return)
Location: http://xxxxxxx
(extra carrage return)
ASKER
Still doesn't work
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
or just "window.open('/path/to/oth er/page.ht ml'); return false"