The landscape of browsers is now divided into two parts, one is IE, and the other is NetScape. Ie has an absolute share in China. In this case, the web pages we design only need to be compatible with it, but NetScape is still used abroad. Many people use it, after all, she is the patriarch of the browser. We can use the Check Browser (check browser) behavior provided by DW to make our website more friendly and select different pages according to different client browsers. Let me explain it slowly.
1. Get to know the Check Browser editing window.
At first glance, this editing window is a bit scary. There are many options. Once you understand the mechanism of this action, you don’t have to be afraid. This action is completed by a set of complex conditional statements, and is made based on the judgment results. Select to choose one of the three web pages. This behavior can clearly identify two browsers: Netscape and Ie. Not all of these two browsers are processed by Other Browser. Each browser will have three options, Go to URL (open a specified file), Go to Alt URL (open another specified page), and Stay on this page (stay on this page). URL and Alt URL define the page pointed by Go to URL and Go to Alt URL.
2. Common applications of Check Browser (Check Browser)
When enabling Check Browser, you must prepare at least two pages, one that can be browsed normally under IE, and one that can be browsed normally under Netscape. If you want to give full play to the functionality of this behavior, you must prepare three pages. When the web page detects that the client browser type is not IE or Netscape, the third page is enabled. How to fill in those options, there is no need to go into too much detail here, because it is very flexible, but it is necessary to explain the workflow of this behavior in detail. I will go through the options in the picture above. First, the webpage determines whether the browser is If it is not Netscape4.0 or later, if it is, open the page pointed to by the Go to URL. If it is not (otherwise) Netscape4.0 or later but its previous version, also open the page specified by the Go to URL; if the webpage determines that the browser If it is Ie4.0 or later, it will stay on the current page. If the version is lower than Ie4.0 or later, it will also stay on the current page; if the browser determined by the webpage is other browsers, open the Go to Alt URL specified page.
Finally, it is emphasized that your Check Browser behavior should be added to the Stay on this page page.