View Full Version : target=_blank/new on Outlook Today page


klyjen
01-14-2003, 06:46 PM
Good afternoon all. I am building a custom Outlook Today page for my enterprise (Outlook 2K sr1). I have a list of links that need to launch in a new window and I use the target=_blank tag. The tag works perfectly when the page is viewed as a "folder home page" but does NOT work when the page is the Outlook Today page.

Any thoughts would be appreciated...thanks in advance for your assistance.

Jennifer

iwasneocoolbabe
01-16-2003, 02:59 AM
um.. could you please rephrase your question? or post your code?

klyjen
01-16-2003, 02:52 PM
Okay...I'll rephrase.

my links with target=_blank work correctly (which is to say, the item opens in a new browser window) when my page is viewed from the browser. However, I need to view the page from Outlook, as the "Outlook Today" page, and the item does NOT open in a new browser when the page is viewed as the Outlook Today page.

That said, I've found the answer...the security model in Outlook is such that pages viewed from Outlook Today do not support the target=_blank functionality. Instead, following the link opens the target page in the same window. (As a side note, pages viewed from the Outlook Today page do not support frames.) The workaround is to format the a tag like this:

<a href="" onclick="window.open('http://www.mytargetpage.com','noname'); window.event.returnValue=false;">My Page</a>

rather than this:

<a href="http://www.mytargetpage.com" target=_blank>My Page</a>

Hope that both (a) clarifies my question and (b) provides the solution for anyone following.

klyjen