Here's one way to do it print << "BUTTON"; <input type="button" value="Open Window" onclick="window.open(' http://www.example.com')"> BUTTON
On Thu, Jul 3, 2014 at 9:53 PM, Uri Guttman <u...@stemsystems.com> wrote: > On 07/03/2014 12:16 PM, James Kerwin wrote: > >> Hello all, >> >> I'm currently using Perl CGI to generate a "Results" webpage. This >> results webpage specifies unique directories generated within the script >> and print these in between the blocks of html so various download and >> display buttons work. >> >> My problem is that I'm using a button to open a file in a new tab and >> the new tab URL uses single quotes and won't work using double or none. >> This then messes up the printing of the html in the Perl script. >> >> Can anybody help me? (Example provided below). >> >> <input type="button" value="Open Window" >> onclick="window.open('THE URL OF THE FILE I WANT TO OPEN IN A NEW TAB >> UPON CLICKING THE BUTTON')"> >> > > it would be most helpful if you posted your relevant perl code. if you say > it messes up printing html i sense you are not creating your html strings > in the best way. > > uri > > > -- > Uri Guttman - The Perl Hunter > The Best Perl Jobs, The Best Perl Hackers > http://PerlHunter.com > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > > -- best, Shaji ---------------------------------------------------------------------------------------------------------------------------------------------- Your talent is God's gift to you. What you do with it is your gift back to God. ----------------------------------------------------------------------------------------------------------------------------------------------