Snippets tagged “window”
22 snippets use this tag.
- How to add a print button to a web pagePHP
To add a print button to a web page using PHP, you can use the following steps:
- How to Check a Webpage is Loaded Inside an iframe or into the Browser WindowJavaScript
Read this JavaScript tutorial and find a working code for checking whether the webpage is loaded inside an iFrame or directly into the browser window.
- How to Check for a Hash Value in a URL Using JavaScriptJavaScript
Read this tutorial and learn the fastest and simplest way of checking for a hash value in the URL using the window.location.hash method in JavaScript.
- How to Check if Element is Visible after ScrollingJavaScript
Read the tutorial and find out one of the methods of checking whether the element is visible after scrolling with jQuery. Also, find about utility function.
- How to Check if User Has Scrolled to the Bottom of the PageJavaScript
Read this tutorial and learn information about jQuery method that is run for checking whether the user has scrolled to the bottom of the page or near to it.
- How to Create a Dialog with JavaScriptJavaScript
Read this JavaScript tutorial and learn information about the method which can create a modal dialog with an optional message and “OK” and “Cancel” buttons.
- How to Create a Popup Form Using JavaScriptJavaScript
Read this JavaScript tutorial and learn how to create popup login, contact, multiple popup logins in one page and other forms on your website with examples.
- How to Create a Scroll Indicator with JavaScriptJavaScript
Know how to create a scrollbar indicator element on your webpage which indicates how far the user has scrolled down the page. Use a little JavaScript code to animate your webpage bar.
- How to Define Global Variable in a JavaScript FunctionJavaScript
Read the tutorial and learn how to define a global variable in a JavaScript function. Also, read about the differences about the global and local variables.
- How to Detect Idle Time in JavaScriptJavaScript
Read this tutorial and learn useful information about the vanilla JavaScript and jQuery solutions that are used for detecting the idle time correctly.
- How to Execute a JavaScript Function when You have Its Name as a StringJavaScript
Read this tutorial and learn about the safe method of calling a function when you have its name as a string. Also, read about why you should not use eval().
- How to Get Current URL in JavaScriptJavaScript
Read and learn how to get the current URL in JavaScript by using Location object properties. Also, gain an understanding about URL and its components.
- How to Get the Browser Viewport DimensionsJavaScript
Read this JavaScript tutorial and learn information about two sets of properties that are used to obtain the height and width of the viewport dimension.
- How to Get URL ParametersJavaScript
Read this JavaScript tutorial and learn how you can easily get the URL parameters with the help of the methods provided by the URLSearchParams interface.
- How to Make Button onclick in HTMLHTML
If you want to make a button onclick, you need to add the onclick event attribute to the <button> element. Learn How to Make Button Onclick with Examples.
- How to Make JavaScript Execute After Page LoadJavaScript
Read this JavaScript tutorial and learn which are the two most used methods of making the script execute as soon as the webpage has completely loaded.
- How to Redirect a Web Page with JavaScriptJavaScript
To redirect a URL page with Javascript you need to set the window.location object. Learn how to do it.
- How to Redirect Mobile Devices With JavaScript and CSSJavaScript
Learn How to Redirect Mobile Devices With JavaScript and CSS. 1.JavaScript Method, 2. CSS @media Method. Fast solution for web developers.
- How to Reload a Page using JavaScriptJavaScript
Read the tutorial and learn information about the method of reloading a page using JavaScript. Also, learn how to make the page be loaded automatically.
- How to Scroll to the Top of the Page Using JavaScriptJavaScript
Read this tutorial and find useful information about the simplest native JavaScript method and its parameters to make the page jump on the top instantly.
- How to switch to the new browser window, which opens after click on the button?Java
To switch to a new browser window in Selenium, you can use the switchTo() method with the WindowHandle of the new window.
- How to Test If a Checkbox is Checked with jQueryJavaScript
In this tutorial, you will find several jQuery methods that are used for testing whether the checkbox is checked based on the different versions you use.