Frame Buster Buster... Need buster code

Suppose you don't want other websites< iframe >Build your site: <iframe src="http://example.org"></iframe> Therefore, you will anti frame, frame damage JavaScript Insert into all your pages: /* break us out of any containing iframes */ if (top != self) { top.location.replace ...

Posted by spiceydog on Sun, 02 Feb 2020 22:22:15 -0800

The construction of varnish proxy server

Varnish is a high-performance open source HTTP Accelerator, Open source reverse proxy and cache servers, Norway Verdens Gang, the largest online newspaper, replaced 12 squids with three varnishs, with better performance than before Basic access to the website firefox - > hosts/dns - > varnish - > server - > varn ...

Posted by purpendicular on Fri, 31 Jan 2020 01:40:49 -0800

Detect when the browser receives file downloads

I have a page that allows users to download dynamically generated files. Generation takes a long time, so I want to display a "wait" indication. The problem is, I don't know how to detect when a browser receives a file, so I can hide the indicator. I'm making a request in a hidden form, which is published to the server and results ...

Posted by MsShelle on Wed, 22 Jan 2020 06:12:26 -0800

Native JavaScript+Css Simulate Select Dropdown Box to Beautify

Native JavaScript+Css Simulated Select Dropdown Preface Implementation Details Technology involved Effect Display Code Display Html structure Css structure JavaScript structure summary Preface Hello, FEer s!In our front-end development career, there are many details, some need to be compatib ...

Posted by susannah on Sun, 19 Jan 2020 18:36:45 -0800

WPS guide for browser application integration

Because the WPS plug-in uses NPAPI mechanism to interact with browsers, it is required that browsers using plug-ins must support NPAPI mechanism and enable NPAPI mechanism. The following are common supported browsers and their versions: FireFox browser 52 and versions less than 52 (NPAPI is no longer supported for versions higher than 52) Chr ...

Posted by jme on Thu, 16 Jan 2020 23:02:03 -0800

Tomcat Server Varnish Proxy Server

Tomcat Server Overview Introduction to Java Java is a cross-platform, object-oriented programming language. Java technology has excellent versatility, efficiency, platform portability and securitysystem Java SE (Standard Edition) Java EE (Enterprise Edition) Introduction to JDK JDK(Java Devel ...

Posted by L0j1k on Wed, 15 Jan 2020 17:40:27 -0800

Solve cross domain -- postMessage

Principle and implementation of postMessage In order to solve the problem of cross domain, HTML5 introduces a new API: Cross Document Messaging. This API adds a window.postMessage method to the window object to allow cross window communication, regardless of whether the two windows are homologous or ...

Posted by l053r on Wed, 15 Jan 2020 03:27:45 -0800

Is there a way to detect if the browser window is currently inactive?

My JavaScript is active on a regular basis. When the user does not view the site (that is, the window or tab does not have focus), it is best not to run. Is there a way to do this with JavaScript? My reference point: if the window you are using is not activated, Gmail chat will play sound. #1 building Since the initial writing of t ...

Posted by Shifty Geezer on Wed, 08 Jan 2020 07:22:31 -0800

Problems encountered in the use of El input

1. When type=number or v-model.number maxlength is invalid because the attribute is valid for text, textarea, and password types. When type=number, the binding input is of type Number and cannot get length. 2. Global matching of phone numbers, verification codes (numbers only), and prices (numbers and decimal points only) Note: type must be ...

Posted by gvanaco on Mon, 06 Jan 2020 08:40:46 -0800

JS DOM Properties+JS Events

DOM Properties console.log(ele.attributes) Gets the collection of attributes of an ele element ele.attributes.getNamesItem(attr).nodeValue Gets the specified attribute value ele.attributes[attr].nodeValue Gets the specified attribute value ele.attributes.removeNamedItem(attr) Deletes the specified attribute     Create attributes and assign val ...

Posted by craka on Sun, 05 Jan 2020 11:50:33 -0800