You can either link to a javascript file:

  <SCRIPT language="JavaScript" src="myJavascriptFile.js"></SCRIPT>

Or include the javascript code directly:

  <SCRIPT language="JavaScript">
    function myFunct() {}
  </SCRIPT>

and call methods from whichever event you want: onLoad, onClick, etc

HTH,
    Pete

Chuck Amadi wrote:

> I have  placed  the CSS file in my struts-bbnpa( named web app) and
> not directly in WEB-INF directory. but as follows -
> /struts-bbnpa/css/bbnpa.css" same level as WEB-INF
>
> I have used the LINK tag as the href the client's browser should not
> be able to access the style sheet. as demonstrated - works fine .
> CHEERS!!
> <link rel="stylesheet"  href="css/bbnpa.css"
>         charset="ISO-8859-1"
> type="text/css">"/struts-bbnpa/css/bbnpa.css"
> nevertheless how do i embed the javascript within jsp as i had js
> working on my college assignment web-site (a timed window status
> scroll ) albiet wont work on my companies web project. any ideas.
>
> Cheers again chuck
>
>
> --
> The views expressed by the sender of this message don't
> necessarily represent those of Brecon Beacons National Park
> Authority. This message is intended for the addressee(s) only
> and is sent in confidence; if you receive it in error, please can you
> let us know (at [EMAIL PROTECTED]) and then destroy all copies.
> Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
> adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
> Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
> yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
> mewn camgymeriad, a fyddech gystal â rhoi gwybod i
> ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.
>

Reply via email to