<html> <body> <a href="http://www.java2java.com">www.java2java.com website</a> <button onclick="alert(document.links.length);"> No. of links on page </button> </body> </html>