Embedded in the IFRAME page, both the parent page and the subpage can be easily read and write in the same domain or across subdomains, and in the case of a completely different domain, you can also communicate by changing the hash. I am following
In many scenarios, Web applications can be started only after the machines have been networked. If there is no networking, you will be prompted for an error. 、
But the machines sometimes have to be restarted. If the machine reboots and starts the
First, for example, we use JavaScript to strengthen our web pages, but we have to consider that if the user's browser does not support JavaScript, or if the user disable JavaScript functionality, can our web page be displayed properly? For example,
One, the effect chart
Second, the HTML code
Copy Code code as follows:
1
2
3
Third, the source code
Copy Code code as follows:
var $ = function (ID) {
Return "string" = = typeof ID?
Copy Code code as follows:
Loading
function Showload (tipinfo) {
var iwidth = 120; The width of the pop-up window;
var iheight = 0; The height of the pop-up window;
var scrolltop = 0;
var scrollleft = 0;
var cheight = 0;
var cwidth = 0;
When it comes to keyword search, the first thing to think about is to use some character functions such as indexof,replace, plus some regular expressions. Although it is simple to achieve, but the efficiency behind this question has been carefully
Copy Code code as follows:
New Document
The river fish unusual death, downstream residents frequent disease, coastal plant constantly variation, is residue pesticide? Or a biochemical attack? Please pay close attention to
Copy Code code as follows:
javascript tab TAB
Today's top Hot this week Hot this month Content 1Content 2Content 3 Recommended Today Recommended this week Recommended this month Content 1Content 2Content 3
The methods discussed in this article have not been used in the actual project, because I have not encountered such a need for projects, but the test found feasible.
I. source of my ideas
Javascipt is a good thing, its appearance makes the page
Sometimes, you need to check to see if the user has modified the contents of a form, you can use the following tips, which returns true if the contents of the form are modified, and False if the contents of the form are not modified. The code is as
Copy Code code as follows:
function geteditorcontents () {
var oeditor = fckeditorapi.getinstance ("content");
Alert (oeditor.getxhtml (true));
}
Inserts the specified code into the editor
function Inserthtmltoeditor (CODESTR) {
var
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