codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Javascript  ken4runner at 22:28 on Monday, December 08, 2003
 

I'm relatively new with javascript.

I need to have a link call a function and have the link still actually work (go somewhere).

I can do both seperately, but I cannot seem to get the link to work and have the function called at the same time.

any help would be appreciated.

I would like for the link to take over the whole window, so I'll be using the "_top " target with all this...

I am sure this is really easy, but I have searched online for like an hour and could not find how to do this anywhere...

  Re: Javascript  rahul4solution at 11:27 on Wednesday, December 10, 2003
 

use

<Script language="javascript">
function fun()
{
//do something ....

document.form.submit();
}
</Script>

<form action="/forum/xyz.html" method="post">
<a href=javascript:fun()>Click here </a>
</form>

this may work....

  Re: Javascript  ken4runner at 14:37 on Wednesday, December 10, 2003
 

Rahul - that's a brillant idea!
: )

I probably would have never thought to put it in a form and post it.

I will try that.

thanks for the suggestion...

- Ken









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  access connection to JSP
•  Please help this n00bie to make a tabbed table work in Netscape 6+
•  ASP / Frames
•  Re: email with image
•  Re: Windows Authentication using LDAP get user first name
•  Two dimentional array - Dropdown box
•  Mcrypt problem
•  datagrid - paging - print data from particular page
•  How to reorder or Re arrange the node in XSL Using ASP and VBScript


Recent Articles
Communicating with the Database (Using ADO)
MagicGrid
Simple Thumbnail Browsing Solution
Type Anywhere
A Better Moustrap: FmtDate to replace FormatDateTime
ASP.NET Forum Source Code
Internal Search Engine
Javascript Growing Window
Simple date validation
Search engine friendly URLs using ASP.NET (C#.NET)


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2005