0

what is the best way to grab the memberId from this data and show it in an alert() dialog?

I would like to make this a bookmarlet something like this:

javascript:alert("member ID is\n"+document.getElementsByName("memberid")[0].value);

(This doesnt work; it's just an example.)

<script type='text/javascript'> 
  //<![CDATA[
    var _SKYAUTH = {
      loginUrl:'',
      memberNick:'',
      memberId:'233669',
      profileUrl:'',
      photoUrl:''
    };
  //]]>
</script> 
0

1 Answer 1

1

i want to make a bookmarlet

You should be able to catch the variable using

alert(_SKYAUTH.memberId);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.