VBA code to get the value of java script(web application) function variable RRS feed

  • Question

  • Hi,

    In web application i have a java script function i need the variable value through vba code.

    Javascript function

    function abc()


    String abcVar="abc123"


    I need abavar value through vba code

    when i run the vba code I need output as abc123




    Monday, September 21, 2015 2:05 PM

All replies

  • Using Javascript, you could write the variable to a hidden HTML field and read the HTML field.  You can't read it directly.  I use this technique to save info I don't want the user to see.

    • Edited by mogulman52 Monday, September 21, 2015 3:03 PM
    • Proposed as answer by André Santo Monday, September 21, 2015 4:53 PM
    Monday, September 21, 2015 2:57 PM