Document.DefaultTargetFrame property (Word)
Returns or sets a String indicating the browser frame in which to display a webpage reached through a hyperlink. Read/write.
Syntax
expression. DefaultTargetFrame
expression An expression that returns a Document object.
Remarks
While the DefaultTargetFrame property can use any user-defined string, it has the following predefined strings: "_top", "_blank", "_parent", and "_self".
Example
This example sets Microsoft Word to open a new blank browser window when a user clicks a hyperlink in the active document.
Sub DefaultFrame()
ActiveDocument.DefaultTargetFrame = "_blank"
End Sub
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk