Java Scripts. List all the links of a page in a Pop up window

Mister Pop up
and his windows
Presents:

List all the links of
.
This Page in a Pop up window!
 
Java Scripts on Pop up windows.

HOME

Click  here to see it work


Tutorial

Search the Web
Sample HTML Document This is the Script Instructions
<html>
<head>
<title>
</title>

<SCRIPT LANGUAGE="JavaScript">
// By Kulesh Shanmugasundaram
Email:linklist@meshage.net
Website: http://www.meshage.net
<!-- Begin
function LinkList() {
var myheader = "<head><title>Links In "+document.title+"</title>
</head>";
myheader = myheader + "<body>";
var myfont = "<font style=\"font: 8pt Verdana, Arial, Helvetica,
Sans-serif; line-height:18pt;\" face=\"verdana, tahoma, geneva\"
size=\"-1\" >";
var mytext = "<center><b>Links in " + document.title + "</b>
<ol></center>";
var myendfont = "</font>";
var myendheader = "</body>";

windowprops = "menubars=no,location=no,toolbars=no,scrollbars=yes,"
+"width=350,height=400,top=50,left=50";
self.name = "main";

if(document.all) {
for (i=0; i<document.links.length; i++) {
if(document.links[i].innerText)
if(document.links[i].innerText != " ")
mytext += "<li><a target='_new' href="+document.links[i]+">"+document.links[i].innerText+"</a>
<br>";
else
mytext += "<li><a target='_new' href="+document.links[i]+">"+document.links[i]+"</a><br>" ;
}
}
else {
for (i=0; i<document.links.length; i++) {
if(document.links[i].text) {
if(((document.links[i].text).indexOf("javascript:")) == -1) {
mytext += "<li><a target='_new' href="+document.links[i]+">"+document.links[i].text+"</a><br>" ;
}
}
else { }
}
}
mytext = mytext + "</ol><center><a href='javascript:window.close()'>close</a></center><BR>";

linkswin = window.open("","",windowprops);
with (linkswin.document) {
open();
write(myheader + myfont + mytext + myendfont + myendheader);
close();
}
}
// End -->
</script>

</head>


<body>

<a href="javascript:LinkList();">List all links of this page</a>

</body>
</html>

This is the first part of the Script.

Put the mouse cursor over the box, Select all, copy and past it in your HTML document.

This is the second part of the Script.

Put the mouse cursor over the box, Select all, copy and past it in your HTML document.

Put the mouse cursor over the box of the first part of the script; right click and Select all, copy and past it in your HTML document between the <head>and</head> tags.

-----------------

Put the mouse cursor over the box of the second part of the Script; right click and Select all, copy and past it in your HTML document Inside the <body> and </body> where you want the link to appear.
(see sample HTML document)

------------------

All the links that are in the web page will be listed in the pop up window.

 

_______________
_______

Menu

links

here

 

DISCLAIMER

For more scripts visit: MasterDiz.com

 

Most scripts listed are either public domain or freeware unless otherwise stated. While most scripts are submitted to us, some have been found in public script libraries. If we are in error, please tell us and we will either remove the script or update the author data accordingly. Proof of copyright must be submitted to us. Authors may or may not be mentioned with or without link depending on author's wishes. Unless otherwise stated, all scripts are freeware and therefore free to use provided you leave any copyright message as is.

If you are the owner of any image, script, program or information displayed in this website and you want it to be remove, and we'll remove it immediatly. Thanks.

MISTER POPUP MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE // SOFTWARE, SCRIPTS OR ANY OTHER IN THIS WEBSITE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED // WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR // NON-INFRINGEMENT. MISTER POPUP SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY // USER AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR // ITS DERIVATIVES.

All graphics and scripts are Copyright of their own authors and we don't claim their Copyright

copyright 2004 Mister Popup