Questions tagged [window-object]

The Window object is a DOM interface that represents a browser window/tab that contains a DOM document. The Window object is defined in the HTML specification.

See also:

94 questions
2
votes
1 answer

Open new window in Chrome Developer Console automatically

I'm having trouble opening new windows programmatically in Google Chrome (version 62.0.3202.94). Go give this a try: function test(){ console.log("haha"); } setInterval(test, 1000); ... and you'll see a new line of haha every second. When you…
iBug
  • 35,554
  • 7
  • 89
  • 134
2
votes
4 answers

Iterating through window object using for in loop

Basically i want to print all properties on the window object, i am using: for(var k in window){ document.write("window object = "+ Object.getOwnPropertyNames(window[k])+ "
"); } I get a weird output with that code.I want to print each property…
MrShabana
  • 377
  • 1
  • 4
  • 12
2
votes
2 answers

"Access is denied" error in IE6

This code is giving me error on line 10 in IE6. That is, var ref = ...; What is the error here? JavaScript Popup Example 3 This script…
cbdeveloper
  • 27,898
  • 37
  • 155
  • 336
1
vote
1 answer

How to access window in a node package

These days, many npm/node packages are not only used on node.js, but also on the web, using tools such as webpack or rollup. I am creating a package that I would like to be used on the web. How do I access the global window object that the browser…
David Callanan
  • 5,601
  • 7
  • 63
  • 105
1
vote
0 answers

Object doesn't support property or method 'someMethod'

I am getting this error in IE 11 on Windows 10 TypeError: Object doesn't support property or method 'someMethod'. I am using React and calling a method named someMethod inside componentDidMount in Full.js file. The someMethod method is defined…
1
vote
4 answers

How to access function inside function without outer returning inner one

I have got a function 'alpha', and there is another function 'beta' inside it. If I don't return beta in alpha, then how to access beta. Is there anyway of doing this? (Like, I can access alpha writing window.alpha(), as in global context alpha…
Deadpool
  • 7,811
  • 9
  • 44
  • 88
1
vote
1 answer

Setting noopener for dynamic url

I am trying to follow the advice from https://developers.google.com/web/tools/lighthouse/audits/noopener and https://mathiasbynens.github.io/rel-noopener/ and am trying to set the value for rel to be noreferrer noopener. The thing is that I cannot…
tabiul
  • 607
  • 3
  • 8
  • 17