// Get the name of the currently accessed file through the URL, excluding the extension function getfilenamenoextendfromurl () { filename = Window. location. href. split ("//") [1]. split ("/"); file = filename [filename. length-1]. split (". ") [0
Today, I wroteCodeThe main function is to test the link between Servlet and JavaScript to complete the refreshing function.
The main code is clear, and the core used is the XMLHTTPRequest object. First, the XMLHTTPRequest object uses five steps:
Css3 has no effect on IE. Other browsers can run
css3 jquery style menu XHTML C ++ mootools HTML5 CSS jquery ajax php perl XHTML HTML5 CSS jquery Ajax php XHTML
Javascript is a popular scripting language for making special webpage effects. It is interpreted and executed by the client browser and can be applied to JSP, PHP, ASP. NET, and other websites.
Like other languages, JavaScript has its own basic
This article briefly introduces the usage of confirm, alert, and prompt in Javascript. I hope you can get some inspiration in the learning process. the window. Confirm parameter has only one parameter. The prompt box is displayed. Press OK to
Memory is a type of operation that can be used to avoid repeated expensive operations to accelerateProgramFirst, it shows the implementation of a Fibonacci sequence. It uses two recursive calls to calculate the value of a given input.
When I work and study, I often encounter the need to view the execution results of the JavaScript code compiled by myself. It's okay in Firefox, but there is firebug, but IE6 won't work well, so, it makes a simple page to view the execution result
Warning (alert)
When visiting the website, have you ever encountered such a situation? A small window appears in front of you with a warning text or other prompts. If you do not click OK, you cannot perform any operations on the webpage. That's
Scenic Spots More & gt; Beijing, China eco-tourism area Olympic venues Swedish mountains sports tourism Wushan, Fujian Zhangjiajie, China Opening Ceremony
We can usePrototype chainTo implement the inheritance of methods from a super class.
The method most people use:function inherit(sub, supper){ var subProto = sub.prototype = new supper(); subProto.constructor = sub;}Note: This will always
Let's take a look at a simple example: the following uses three tabs named frame.html?top.html?bottom.html as an example to describe how to do this. frame.html consists of two pages (bottom.html) under the top (top.html#). The Code is as follows:
1. substring method definition and usage the substring method is used to extract characters that are intermediary between two specified subscripts. syntax stringobject. substring (start, stop) parameter description Start is required. A
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service