Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Text and Javascript


Message #1 by "Magnus Tullock" <magnus.tullock@a...> on Fri, 23 Nov 2001 11:58:01
Hello Magnus,

<td onClick="alert(this.innerText);">Text to be displayed</td>

Friday, November 23, 2001, 2:58:01 PM, you wrote:

MT> Hi Guys,
MT> Is is  it possible to read a line of Text into Javascript? what I mean in 
MT> I have have written a bit of VBScript to creat a table with items in a 
MT> database.  I would like it that when the user clicks on the name of the 
MT> item a little alert box pops up with the words that they clicked on.  So 
MT> for example if the table had the entries A,B,C in it and the user clicked 
MT> on B an alert box shows the letter B.  I have tried passing the <a href> 
MT> object into the javascript function and tried displaying that but it 
MT> doesnt seem to work.
MT> any ideas?

MT> Cheers
MT> Magnus
MT> ---
MT> 
MT> 




-- 
Best regards,
 Konstantin Sokolovskiy (mailto:ske@u...)
 ICQ# 44424442


  Return to Index