Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 176
  • Last Modified:

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).
0
trinh
Asked:
trinh
  • 2
  • 2
  • 2
1 Solution
 
wisdom042597Commented:
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.

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

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


0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
trinhAuthor Commented:
Still doesn't work
0
 
MaDdUCKCommented:
I think the only solution to your problem would involve JavaScript:

==
<html>
<head><title>This page will stay</title></head>

<body OnLoad="window.open('/path/to/other/page.html','','resizable=yes,width=480,height=360,scrollbars=yes'); return false">

</body></html>
==

have fun,
MaDdUCK
0
 
MaDdUCKCommented:
or just "window.open('/path/to/other/page.html'); return false"
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now