Results 1 to 2 of 2

Thread: JavaScript to hit the html link and get the tag value

  1. #1
    Join Date
    Jan 2015
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default JavaScript to hit the html link and get the tag value

    Hi All,

    I am New to Java Script. i have a link "https://gradan1:32413/sco/mon/abc.html". (i Have many links like that so i cant hard code the Source code of html tag)
    i need to hit the link and want to check particulat tag value.
    Code:
    <td>15.02.0.10</td>
    This tag value will be keep on changing. i need a Java script which helps me to fetch the value "15.02.0.10".

    Thank you in Advance!

    Devaraj A

  2. #2
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,859
    Thanks
    49
    Thanked 260 Times in 252 Posts
    Blog Entries
    56

    Default

    Do you mean something like this?
    Code:
    <table>
    <tr>
    <td id="check_it">15.02.0.10</td>
    </tr>
    </table>
    
    <a href="javascript: void(0)" onclick="alert(document.getElementById('check_it').innerHTML); return false">check</a>

Similar Threads

  1. HTML button with link
    By juliememe in forum HTML
    Replies: 5
    Last Post: 01-27-2012, 01:05 PM
  2. HTML anchor link?
    By Jaxbuild in forum HTML
    Replies: 2
    Last Post: 02-13-2009, 10:40 AM
  3. Javascript.AJAX link inside javascript dropdownmenu
    By Possemaster in forum JavaScript
    Replies: 2
    Last Post: 01-25-2008, 09:46 AM
  4. HTML Gallery - Need Javascript for HTML Array
    By LisaA in forum JavaScript
    Replies: 7
    Last Post: 08-12-2006, 04:35 PM
  5. HTML link inside javascript string
    By bkdell11 in forum JavaScript
    Replies: 2
    Last Post: 08-19-2005, 04:43 PM

Bookmarks

Posting Permissions

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