|
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...
|
|
|
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....
|
|
|
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
|
|
|
|
|
|
|
|