[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: [Lynx-dev] Would Lynx try to download iFrames, External Javascript

From: Rashmi Rubdi
Subject: Fwd: [Lynx-dev] Would Lynx try to download iFrames, External Javascript etc
Date: Fri, 8 Jun 2007 09:26:28 -0400

Thank you Stef for your reply.

I tried the -traversal option on a local html file on the disk and got
this message
The '-traversal' switch is for http URLs and cannot be used for
'first.html'. , so I guess I can't test it on local files.

But I tried the -crawl switch along with the -trace switch as in:

lynx -crawl -dump -force_html -nolist -hiddenlinks=ignore -trace  first.html

The output looks like the following, so from looking at the output it
appears that
Lynx is not making a connection to any of the external resources.

address@hidden lynx_test]$ lynx -crawl -dump -force_html -nolist
-hiddenlinks=ignore -trace first.html
THE_TITLE: Test Page in Lynx

  This is a test

  An example image

  Alternate content for browsers that don't support iFrames.

address@hidden  lynx_test]$

first.html contents (the input to lynx command)

For testing purposes:
I've added a script tag to point to an external javascript
an img tag pointing to an external site's image
an iframe pointing to an external site

Test Page in Lynx
<script type="text/javascript"
<link rel="stylesheet"
<script type="text/javascript">
function doAlert(){
<div>This is a test</div>
<a href="";>Google</a>
<img src=""; alt="An
example image"/>
<iframe src=""; title="Yahoo IFrame">
       Alternate content for browsers that don't support iFrames.

<input type="button" value="Press Me" onclick="doAlert()"/>


On 6/7/07, Stef Caunter <address@hidden> wrote:
On Thu, 7 Jun 2007, Rashmi Rubdi wrote:

> lynx -dump -force_html -nolist -hiddenlinks=ignore first.html
> however, I just wanted to verify that it is true that Lynx does not (by
> itself)
> try to download web page resources that are external to that web page such as

Reading a -trace session is instructive. The lynx browser will check if the URL
argument is local first. Since "first.html" is local, no network activity
occurs; otherwise you would see name resolution and a GET request.

But see lynx -traversal -crawl

You will see some of the behaviour you expect.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]