This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 60041
    
  65

"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
 
Similar Threads
disabling javascript
javascript - function for aotumaticallly selection of links
Passing values dynamically in Anchor
reading a hyperlink innerhtml value