Please Correct this code...Clicking the button not working. It works if I put some cgi script and "parent.location.href" along with that as you mentioned.#!/usr/bin/perl use CGI; $co = new CGI; print $co->header; print $co->start_html(); print $co->center($co->h1('Press button')); print $co->image_button(-name=>'button',-src=>'../../../icons/dir.gif' +,-onclick=>"displayHello()"); print $co->end_html; sub displayHello() { print "hello"; }
In reply to Re^2: CGI button -onClick not working
by tarunkhanna
in thread CGI button -onClick not working
by tarunkhanna
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |