File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes invoke a link in JS ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "invoke a link in JS ?" Watch "invoke a link in JS ?" New topic
Author

invoke a link in JS ?

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
how to invoke a link in JS ?



I don't want to submit it using form. I just like clicking a link.

Thanks.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
something like using onclick and document.location.href = "foo.html";

Eric
Animesh Saxena
Ranch Hand

Joined: Jan 15, 2006
Posts: 62
or maybe AJAX for sending to server side


Animesh Saxena<br /> <br />Open Source Developer
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61774
    
  67

Originally posted by Animesh Saxena:
or maybe AJAX for sending to server side


Please don't over-complicate the discussion. Ajax has nothing to do with original poster's question.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: invoke a link in JS ?