Question about page Interception

Source: Internet
Author: User

  1. Ie

 

2. TT

 

3. maxthon

By default, chrome and firefox are installed without page blocking, and some corresponding plug-ins are available.

 

During the test, the page cannot be tested locally. You need to place the page on the http server.
1. ie
When the page blocking is set to high, all methods cannot be opened on the new page.
When the block is set to medium, window. open, the new a click and form submit can both open the page, and the timeout cannot open the page.
The interception is set to low. You can enable the above methods.
The question mark (?) is added after the url in ie6 submit mode? Like http://www.baidu.com /?
2. maxthon
Does not inherit the interception settings of ie.
Maxthon supports timeout open for a certain period of time, now the test is about 850 MS, the above methods in timeour greater than 850 cannot open the page.
3. chrome
Chrome does not support timeout open, which is consistent with ie.
4. TT
In TT custom Screen mode, you cannot use a script to open a new page.
5. firefox
Firefox does not intercept by default. You can enable the above methods.
Code
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <ptml xmlns = "http://www.w3.org/1999/xhtml"> <pead> <meta http-equiv =" content-Type "content =" text/html; charset = gb2312 "/> <title> title </title> <style type =" text/css "> a {display: block; margin: 10px 0; border: 2px solid #555; width: 500px ;}</style> </pead> window. open timeout 500 ms window. open timeout 850 ms window. open timeout 900 ms window. open timeout 1000 ms window. open new a click timeout 10 ms window. open window. open local domain timeout 100 ms window. open local domain test operation open a href target blank local domain div time 500 <button onclick = "test () "> button time 500 </button> img time out 500 <body> </ptml>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
Summary:
1. The application should be opened on the new page. Use a and href to put some other functions on onclick, as shown in figure
<A href = "http://www.baidu.com" target = "_ blank" onclick = "alert (1)"> </a>
2. Some applications that need to be opened on a new page and are related to cgi can be redirected through http 302.
<A href = "http://www.example.com/cgi? Myid = 1 "target =" _ blank "onclick =" alert (1) "> </a>
Http://www.example.com/cgi? Myid = 1 will jump to the page you want
3. You must use js to open the page on the new page. You can use window. open.
<A href = "javascript;" onclick = "window. open ('HTTP: // www.baidu.com '); return false;"> </a>

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.