Redirect a web page using Behaviors in Microsoft Expression Web 3

You may want to redirect to a web page from another for some reason. Say your site is down for maintenance and you do not want the readers to see an error or a blank page. In such case, you can redirect them to a meaningful web page, for instance another web site or a page that displays a message for the readers. Behaviors let you achieve this in simple way.

  1. Go to Panels menu and choose ‘Behaviors’. The Behaviors panel would be pinned next to the Apply and Manage Styles panels.
  2. NOTE: In earlier versions of EW these panels were known as task panes.

  3. Click on Insert and choose ‘Go to URL’ from the drop menu.
  4.  insert_menu

  5. The Go To URL dialog box would be prompted as shown below:
  6.  go_to_url_dlg

    Enter the URL or browse to the file and click OK.

  7. The behavior would then be visible in the Behaviors panel as shown here:
  8. events 

    The Events list lets you set the event on which the action (Go To URL) should occur. Choose an event. For our example, where we want to redirect to different page since our site is down for maintenance, we would choose ‘onload event’.

  9. Save your page and preview in the browser.

Filed Under: Expression Web

Tags:

About the Author: Minal is a freelance web and graphics designer. She specializes in designing Logos, Stationery, Graphics and Icons as well as website templates using graphical tools like Photoshop, Illustrator and Expression Web. Twitter @saffronstroke

RSSComments (3)

Leave a Reply | Trackback URL

  1. […] Redirect a web page using Behaviors in Microsoft Expression Web 3 « Microsoft Expression Web Tips, … saffronstroke.com/2009/08/25/redirect-a-web-page-using-behaviors-in-microsoft-expression-web-3 – view page – cached #RSS 2.0 Microsoft Expression Web Tips, Tricks, Templates, Logo, Banner and Stationery Designs – SaffronStroke » Redirect a web page using Behaviors in Microsoft Expression Web 3 Comments Feed Microsoft Expression Web Tips, Tricks, Templates, Logo, Banner and Stationery Designs – SaffronStroke Eye Wear Designs Class Selectors — From the page […]

  2. […] posted here: Redirect a web page using Behaviors in Microsoft Expression Web 3 … design-resource, information, social, social-bookmarking, […]

  3. Dan says:

    I know how to do that part but how about a pop up window?

    When I click ok on the popup window ok button how do I get it to bring up a new page.

    what function could I use.

Leave a Reply