
japhy
Enthusiast
Mar 10, 2000, 4:05 AM
Post #2 of 2
(301 views)
|
|
Re: How do I add this java code to a cgi script?
[In reply to]
|
Can't Post
|
|
Any content you want to print as HTML (whether it be HTML content, or JavaScript) gets printed normally, like an HTML document. <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR> #!/usr/bin/perl print << "END OF CONTENT"; Content-type: text/html <html> <head> <title>Embedded JavaScript</title> <script language="javascript"> <!-- function openWin (url) { window.open(url,'newwin') } // --> </script> </head> ... </pre><HR></BLOCKQUOTE> Yadda yadda.
|