defining js variable

Results 1 to 2 of 2

Thread: defining js variable

  1. #1
    Join Date
    Dec 1969

    Default defining js variable

    Is it possible to define a javascript varible in the anchor tag with the OnClick thing as well as call a function. I need to define the varible in the Anchor tag because depending on the link it will open a different querystring to an asp page to display the results in a popup window. <BR><BR>Why does something simple have to be so difficult.<BR><BR>Matt

  2. #2
    Join Date
    Dec 1969

    Default RE: defining js variable

    After<BR>onClick="&#060;any Jscript code you desire, just use &#039&#039 instead of "" when playing with strings. So, that includes defining variables, or using the ones you defined before.<BR>Hope that helped.<BR>Yan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts