Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I get Frame HTML Source-Code?

Status
Not open for further replies.

SatishPutcha

Programmer
Mar 12, 2002
256
IN
Hi

I have a window that has two frames. The top frame has a link and the bottom has a webpage from another website.

How do I "view-source" (using JavaScript or VBScript or ASP) for the page that loads into the bottom frame? This page will change based on the user's selection.

If it is possible then I can explain the other part of this problem? If not I don't want to waste everyone's time writing irrelevant stuff.

REGARDS
satish
 
Hi,

Look at the source of the frame page. Then look for some lines that look like this:
<FRAME NAME=&quot;top&quot; SRC=&quot;top.html&quot;>

Simply copy the part in the SRC part into the address.

Eg - If the site was and used the above code, then to get that page to show seperately you would type this into the address bar:
However, if the above frame SRC was this: SRC=&quot;/frames/pages/top.html&quot; then you would have to type this into the address bar:
Hope this helps! NATE
design@spyderix-designz.com
 
hi

Can we get the source of the frame using the &quot;name&quot; attribute of the frame?

REGARDS
satish
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top