0

Is it even possible to inject JS commands into page created with ASP.NET?enter image description here

Everything seems to be undefined even tho it exists.

enter image description here

EDIT: It's not working. Should it be working?

enter image description here

EDIT 2: The element I am trying to get is inside the tag, I can reach elements outside of it.

1
  • Maybe you should provide us your full scripts on the page? Commented Jul 27, 2015 at 9:36

1 Answer 1

1

ASPX has nothing to do with outputting content to the web console. It's done by javascript. Use

Console.log(); //Put what ever you want inside the brackets

to output anything to the console. If you want to add a popup kinda thing use the alert() so it will give a popup with the data upon execution.

Sign up to request clarification or add additional context in comments.

6 Comments

try using document.getElementById('elementid') and console.log it!
still undefined. Is it possible that there are some restrictions that prevent me from doing this?
Also there would be and error if jQuery wasn't working
does your elemetn reside inside an iframe?
I figured that! :) good that you figured that on your own! :)
|

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.