Problems using onclick event

Results 1 to 2 of 2

Thread: Problems using onclick event

  1. #1
    Join Date
    Dec 1969

    Default Problems using onclick event

    I&#039;m *really* new the the ASP thing, but I am curious as to how I use an onclick event in HTML that has been dynamically created. I keep getting "object expected" errors. I am using something like this: <BR>html = "&#060;span onclick=&#039;Get_Data()&#039;&#062;" + objFile.Name + "&#060;/span&#062;" <BR><BR>It worked fine with href tags to open documents up in a new window, but the onclick jsut won&#039;t work. Can you help me?

  2. #2
    Join Date
    Dec 1969

    Default RE: Problems using onclick event

    I don&#039;t think the &#060;span&#062; tag has an onclick event.<BR><BR>I suggest going through ASP .NET Lessons.<BR><BR> <BR>Aaron

Posting Permissions

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