Re: simulating <br>

Vincent Lefevre wrote:


> I wish the browsers I use could collapse <BR>'s. There are pages that
> use too many of them and need to be scrolled too much often.


Abracadabra, your wish is now reality. I am glad to provide
the readers of this mailing-list with a very small piece
of script for MSIE 5.

1. save the attachment in a file called CollapseBRs.url
2. drag'n'drop the file into the Link toolbar of Windows Explorer
or Internet Explorer
3. download any HTML file with multiple BRs
4. click on the CollapseBRs link in the Link toolbar

/* Enjoy ! */

</Daniel>
[InternetShortcut]
URL=javascript:if (false)void('Collapse BRs... script (C)2000 Daniel Glazman');var i=0,ds='',s = document.getElementsByTagName('BR');if (s.length >= 2) {for (i=s.length - 2;i>=0;i--) {var f = s.item(i), g = s.item(i+1), p; p = g.parentNode;if (f.nextSibling == g) {p.removeChild(g);};}};void(20001026);

Received on Thursday, 26 October 2000 10:37:21 UTC