Jump to content

Built In Object javascript


Chikwado

Recommended Posts

This?

https://developer.mozilla.org/en-US/docs/Web/API/Window

 

Or do you mean like in a browser? If so, you can log the window object to the console, and expand all the properties / methods that way.

Link to comment
Share on other sites

I am trying to do this, I do not know if I am at right place.

var objs = Object.getPrototypeOf("window", prototype);
I would use loop to count them and store it in local var and print out the local var.
Link to comment
Share on other sites

I don't believe there is access to the prototype of the Window object, and I don't think there is a list of native Javascript objects.

 

Why do you want to do this?

Link to comment
Share on other sites

Can you hit this link help tell us more about what you understand in that page: http://stackoveflow.com/questions/14022582/object-getownpropertynameswindow/-doesnt-return-settimeout-in-array I like to write a command to view all the list of that powerful element existing in browser. Example XMLHttpRequest(). more help.

Edited by Chikwado
Link to comment
Share on other sites

Stack overflow seems to be having problems right now with their load balancing.

 

I think the question is why you're trying to do that. If you just want to look at everything in the window object, you can do that in the developer tools, click on the DOM tab and you'll see the window object there with all of its properties and methods listed. If you're trying to print everything on a page, the question is why.

Link to comment
Share on other sites

I am using a small nokia device to read a tutorial which I can not view that DOM. That why I am wondering If I can write a script place in public_html, then I would type the url to execute it from the server and it would return the list of the DOM.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...