I am attempting to improve an old calendar page I built using free “internet code” nearly 15 years ago. When the seven-column by six-row calendar displays, moving the mouse cursor over any one of the days displayed shows a “More Info” link, and clicking that link pops up a new window. The effective JS code: url looks like ‘2022-11-27.html’ ‘striing’
Tag: window
window is not defined in svelte – using svelte store
I have a svelte store that has the following code Edit I have accessed the store by the following code Then checked the state by $modalState and the accessed the function by modalStore.openModal(); It throws 500 error with – window is not defined How can I solve it? Answer The problem is that onDestroy gets executed on the server. So
how to resize a HTML browser window with javascript using Chrome
I have a program where I place the element using CSS in % of window height and width. When opened in a monitor with different resolution (only if the ratio height-width is different), the elements are a little bit misplaced. My solution is limit the height of the window when open in Chrome, so I can keep the same ratio.
How to get the current foreground application in electron(Javascript)
How can I detect if, for example, a browser is currently open? I need this in my electron-application. ty 🙂 I’ve found nothing like this online. I’ve only found how I can check which window is open from the windows I have in my own application, but I need to know, what else is opened. It should be something like
Get viewport/window height in ReactJS
How do I get the viewport height in ReactJS? In normal JavaScript I use but using ReactJS, I’m not sure how to get this information. My understanding is that only works for components created. However this is not the case for the document or body element, which could give me height of the window. Answer Set the props viewport height
Storing a variable in the JavaScript ‘window’ object is a proper way to use that object?
(Maybe) I just solved a my problem (How to update front-end content after that a form is successfully submitted from a dialog window?) by “storing” / “saving” a variable in the JavaScript window object. However, since I am newbie in JavaScript matters, I have some doubts if storing / saving a variable in the JavaScript window object is a “common”
Benefit of using ‘window’ prefix in javascript
Are there any benefits to using the ‘window’ prefix when calling javascript variables or methods in the window object? For example, would calling ‘window.alert’ have an advantage over simply calling ‘alert’? I can imagine using the prefix could give a small performance boost when the call is made from inside some function/object, however I rarely see this in people’s code.