• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

invoke a link in JS ?

 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
something like using onclick and document.location.href = "foo.html";

Eric
 
Animesh Saxena
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
or maybe AJAX for sending to server side
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic