aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Javascript - Automatically selection of links present on page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Javascript - Automatically selection of links present on page" Watch "Javascript - Automatically selection of links present on page" New topic
Author

Javascript - Automatically selection of links present on page

Pictor Pictor
Greenhorn

Joined: Apr 21, 2006
Posts: 2
Hi,

In javascript can we write one function which will select all links prsent on the page automatically after 15 seconds.

I have a HTML page which is having lots of links, if we select one link it will show a image assocated with that link.

Instead of selecting all links manually can we make it automatic by Javascript.

thanks
priyanshu
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61417
    
  67

"Pictor Pictor",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
What do you mean select and images. Have no clue what you want to happen.

You can play with document.links which is an array.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Javascript - Automatically selection of links present on page