j***y 发帖数: 2074 | 1 hi, all:
i want to use perl to write a new html file.
it is fairly easy, you know.
but one thing is nagging me:
how can i control the new window's size?
my html code is:
the first
link
and the corresponding perl script is:
#!d:/perl/bin/perl
print "Content-type: text/html\n\n";
print "\n",
"\n",
"SGFViewer\n",
"\n",
"\n",
"\n"; | s**********i 发帖数: 711 | 2
change the link to
"window.open('/cgi-bin/sgfviewer/goviewer.pl?1",
'_blank', width=210,height=600">
or just : hi, all: : i want to use perl to write a new html file. : it is fairly easy, you know. : but one thing is nagging me: : how can i control the new window's size? : my html code is: : the first : link
: and the corresponding perl script is: : #!d:/perl/bin/perl
| j***y 发帖数: 2074 | 3 thanks, this mix of javascript and perlscript works!
【在 s**********i 的大作中提到】 : : change the link to : "window.open('/cgi-bin/sgfviewer/goviewer.pl?1", : '_blank', width=210,height=600"> : or just s**********i 发帖数: 711 | 4
it has nothing to do with perl. new window size can't
be controled by its content, only the caller to open
this window.
【在 j***y 的大作中提到】 : thanks, this mix of javascript and perlscript works!
|
|