JavaScript is a method that recognizes and redizes web keywords.
The example in this article describes how JavaScript can identify and trace the Web keywords. We will share this with you for your reference. The details are as follows:
Here, we will demonstrate how
During routine web programming or UI Automation scripting, it is often necessary to determine the display state of the page elements to perform the corresponding actions. This article mainly to JS to judge the existence of page elements as an example, a brief description of how JS is to determine the state of the display of elements, please refer to the small owners. If there are shortcomings, please the gr
text box text
15. Determining the origin of the previous page
Javascript:
Document.referrer
16. Minimize, maximize, close windows
This example applies to IE
17. Screen function Key Shift,alt,ctrl
18. Web pages are not cached
or
19. How do I make a form without bump and feel?
Or
1 Solid #000000 ″>
Wh
javascript| Menu | web | application Example
JS Library from:http://moofx.mad4milk.net/(MOOFX Super lightweight Javascrip effect class library)
Just click here to see the effect.
Usage:
1. Add JS Library
CODE:
2. Establish the XHTML structure:
CODE:
3. Call JS:
CODE:
Complete.It's simple and it works.If you want to have a good interface, customize the CSS Bar
D
When you are programming, you sometimes use custom properties of Web server controls. For example, there is no Isnotnull property in the TextBox control, but we can add a Isnotnull property ourselves as a token to facilitate our programming.
Although, the IDE prompts "Isnotnull is not a TextBox" this warning message but also does not prevent us to use!
Code:To write J
ReviewThe main content of this article is from MU-class network, Incident Response and Web page interaction, the main content is as follows
1 What is an event
2 mouse click event (onclick)
3 Mouse over events (onmouseover)
4 Mouse Move event (onmouseout)
5 cursor Focus event (onfocus)
6 Defocus Event (onblur)
7 Content Check Event (onselect)
8 text Box content Change event (onchange)
9 Load event (onload)
1
+ backgroundoffset;}
var Scrolltimer = Window.setinterval (SCROLLBG (410), 20)
22. Web pages are not cached
HTML Web page
or ASP Web page
Response.Expires =-1
Response.ExpiresAbsolute = Now ()-1
Response.CacheControl = No-cache
PHP Web page
Header (Expires:mon, June June 1997 05:00:00 GMT;
Header (Cache-control:no-
page': footerText;Factory. printing. header = " B" + header + " B ";Factory. printing. footer = " B" + footer;Factory. printing. portrait = true;Factory. printing. leftMargin = 10.00;Factory. printing. topMargin = 10.00;Factory. printing. rightMargin = 10.00;Factory. printing. bottomMargin = 10.00;}
Example
Reference:
(5) print the backgroundBy default, when you use IE to print a webpage, the webpage background is not printed. To print the webpage
debugger statement
When you need to debug js, we can passdebuggerWhen you open a breakpoint, the code execution will be tentative when it reaches the breakpoint. At this time, you can debug the js Code in a single step.Use javascript breakpoint
Add a checkpointdebugger:
123
if (waldo) {debugger;}
In this case, open the console panel and you will be able to debug it.Tips
If you do not know how to debug it, read the brea
the back button. Because
The browser no longer caches this page. When the user clicks the back button, the browser downloads the page again. Then, the program can check the session variable to see if
Users should be allowed to open this page.
For example, suppose we have the following form:
The Code is as follows:
Response. Buffer = TrueResponse. ExpiresAbsolute = Now ()-1Response. Expires = 0Response. CacheControl = "no-cache"If Len (Session ("Fir
if (window.addeventlistener)//Bind event listener functionWindow.addeventlistener ("Load", F, false);else if (window.attachevent)//ie8 the following executionWindow.attachevent ("onload", f);}Sets a marker bit to determine whether the document is loaded and completedonload.loaded = false;Register a load function to set the load tagOnLoad (function () {onload.loaded = true;});4. JavaScript Timeline Execution sequenceThe 4.1
The cross-domain problem of Web pages is caused by attempts to read and write JS scopes in different domains using JS scripts. The problem stems from JavaScript's same-origin policy: For security reasons, JavaScript restricts the interaction between Web page JS scripts from different sources. Otherwise, there will be a variety of access to the user's private data
One JavaScript instance per day-determine the region of the web page, and define criptweb
How does html jump to another page JavaScript?
Parameters can also be added to html pages. For example, 2.html? Id = 2Then you can use javascript in 2.html to obtain the parameter val
Learning how to use JavaScript to create Web ApplicationsProgramPreviously, we spent three minutes learning about the development of Web applications, which is roughly divided into four stages:
1. text-based hyperlinks
In this phase, web applications mainly consist of static and unchangeable hyperlink text (no graphi
See the mobile Framework on the project, search the Internet for a moment, and found that the original has been in the beginning. So, find an example to start building a mobile platform of the cms--Qi CMS, easy to understand the project at the same time, you can also maintain a CMS system.Building a frameworkTrying to use Angularjs and Emberjs, the main problem with using ANGLUARJS and Emberjs is that it's not easy to introduce what you're familiar wi
The example in this article describes the way JavaScript implements the local program in a Web page. Share to everyone for your reference, specific as follows:
More readers interested in JavaScript-related content can view the site topics: "JavaScript error and debu
[Web API series tutorial] 3.6-practice: process data (create a JavaScript client)
In this section, you will use the HTML, JavaScript, and Knockout. js libraries to create clients for applications. Follow these steps to create a client application:1. display the books list2. display detailed information about the book3. Add a new book
The Knockout. js library uses
. Javascript2. Flash3. Silverlight
I have not found flash and Silverlight, But I have written a lot of JavaScript code. Two of them can be used.1. http://www.treemenu.net/this name is the largest, but not every skin is compatible, like my favorite KJC with this Treeview, the tree cannot be automatically expanded.
2. http://destroydrop.com/javascripts/tree/, which I recently discovered, is the Treeview currently used on my left side, the program is
-made JS File:A single template introduces an external JS file: A paging preview, a fill preview, or a settings icon next to the data analysis, and then click Reference JavaScript;All templates under the report project unify the introduction of external JS files: server > Server configuration > Reference JavaScript.Relative path Reference JS: Relative to the report project directory such as Webreport, such as Webreport\js under the reference JS file t
-made JS files:A single template introduces an external JS file: A paging preview, a fill preview, or a settings icon next to the data analysis, and then click Reference JavaScript;All templates under the report project unify the introduction of external JS files: server > Server configuration > Reference JavaScript.Relative path Reference JS: Relative to the report project directory such as Webreport, such as Webreport\js under the reference JS file
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.