PRB: NAVIGABLE Attribute Changes Behavior of Linked Document in HTML Applications (274555)



The information in this article applies to:

  • Microsoft Internet Explorer (Programming) 5.5

This article was previously published under Q274555

SYMPTOMS

Existing HTML Applications (HTAs) that have defined <FRAMESET> elements may behave differently in Internet Explorer version 5.5 than in earlier versions. For example, if you have an <A> element with a target Property = "_Top", when you click the link, a new browser window opens even though the HTA is the top window.

CAUSE

Internet Explorer 5.5 introduces the navigable property to give more flexibility to developers. This property sets or retrieves whether linked documents are loaded in the main HTA window or in a new browser window. The default value of this property is set to no, which opens a new browser window.

RESOLUTION

To resolve this problem, set the NAVIGABLE attribute value to yes as follows:
<HTA:APPLICATION ID="oHTA" NAVIGABLE="yes"/>
				

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a new HTML page, name the file with an .hta extension, and then paste the following code:
    <HTML>
     <HEAD>
      <HTA:APPLICATION ID="oHTA"/>
     </HEAD>
    	
    	<FRAMESET>
    		<FRAME SRC="test.htm" application="yes">
    	</FRAMESET>
    
    </HTML>
    					
  2. Create another HTML page named Test.htm that loads within the <FRAMESET> that is declared above:
    <HTML>
     <BODY>
       <A HREF="http://www.microsoft.com" target="_top">http://www.microsoft.com</A>
     </BODY>
    </HTML>
    					
  3. In Internet Explorer 5 or 5.01, view the HTA. Click the link, and the Web site opens within the HTA. In Internet Explorer 5.5, when you click the link, a new Internet Explorer window displays the Web site.

REFERENCES

For more information on the NAVIGABLE attribute and navigable property, see the following article on the Microsoft Developer Network (MSDN): For more information on HTAs, see the following MSDN article: For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:

Modification Type:MajorLast Reviewed:5/11/2006
Keywords:kbDHTML kbNavigation kbprb KB274555