ggordon
Programmer
- Sep 15, 2003
- 45
I have a snippet of code that goes like this:
{
$file = "correct.html";
open(FILE, $file);
while(<FILE>)
{
print $_;
}
close(FILE);
}
My question is ...
Is there an easy way to modify this code .. so that the page "correct.html" will do one of a few things, depending upon what I need.
1) How can I get it to load in a NEW window, for example (in HTML) as in target="_blank" ?
2) How can I get it to load in an already loaded window, such as a previously opened window that might be named "main", for example (in HTML) as .. target="main" ?
Is there a way, to simply modify the above code (at the top of the page) so I can direct the page to load into a new or different window?
What do I need to do?
Help??
Thanks,
Gary
{
$file = "correct.html";
open(FILE, $file);
while(<FILE>)
{
print $_;
}
close(FILE);
}
My question is ...
Is there an easy way to modify this code .. so that the page "correct.html" will do one of a few things, depending upon what I need.
1) How can I get it to load in a NEW window, for example (in HTML) as in target="_blank" ?
2) How can I get it to load in an already loaded window, such as a previously opened window that might be named "main", for example (in HTML) as .. target="main" ?
Is there a way, to simply modify the above code (at the top of the page) so I can direct the page to load into a new or different window?
What do I need to do?
Help??
Thanks,
Gary