Results 1 to 1 of 1

Extracting a Javascript Variable

Threaded View

  1. #1
    Registered User
    Join Date
    01-09-2011
    Location
    Ohio, United States
    MS-Off Ver
    Excel 2007
    Posts
    1

    Extracting a Javascript Variable

    I have a web page where I need to extract some info that is located within a Javascript Variable. How do I extract the var?

    I do not have much knowledge of VBA or DOM, but with the help of google I have learned how to open the website. However, I have hit a brick wall when trying to find info on how to extract javascript var.

    I found this page: http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx
    but I don't know if that would help or not.

    This is a very basic mock-up:
    <html>
    <title>Title</title>
    <body>
    <script language="JavaScript" type="text/javascript">
    var sData = Array();
    sData[0] = "I need this Info";
    sData[1] = "I need this Info";
    </script>
    </body>
    </html>
    Last edited by INeedYourHelp; 01-09-2011 at 07:47 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1