Home > Language Reference > Web Functions > GetFrameSource$

GetFrameSource$

The GetFrameSource$ function retrieves the source code of the specified frame.

Usage

It gives the same results as the View/Source option on the context menu after right-click somewhere in the frame.

Syntax

var$=GetFrameSource$(<src_framename>)

Parameter

<src_framename>, string, SRC property of the frame. You can find this property value by viewing the source of the main web page containing the frame.

Return value

var$, string, source code. If the function fails, the return value is an empty string (an empty string is "").

Remarks

Before invoking this function, a UsePage statement must specify the page title where the frame has to be found.

Example

UsePage("WinTask x64 Frames")
'Let's suppose that the page includes a frame which loads the frame7.htm file
a$=getframesource$("frame7.htm")
msgbox(a$)