Is there anything I have to pay attention to if I want to inccorporate javascript in my html.pl file?
Just put the codes between the following anchors:
</head>
If you are going to use common javascript for all your sub-routines in the html.pl file, then you can create a sub-routine like the following:
#-----------------------------------------
# prints javascript codes in sub-routines
print qq~ JAVASCRIPT CODES~;
}
Then you will have to insert this sub-routine as follows:
|; &javascript; print qq|
</head>
Regards,
------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------
[This message has been edited by Eliot (edited December 20, 1999).]
Code:
<head> </head>
If you are going to use common javascript for all your sub-routines in the html.pl file, then you can create a sub-routine like the following:
Code:
sub javascript { #-----------------------------------------
# prints javascript codes in sub-routines
print qq~ JAVASCRIPT CODES~;
}
Then you will have to insert this sub-routine as follows:
Code:
<head> |; &javascript; print qq|
</head>
Regards,
------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------
[This message has been edited by Eliot (edited December 20, 1999).]