H
Hardy Wang
Hi,
I have a web form with a Hyperlink control, which renders client code
like:
<form id="form1" name="form1">
<a href="a.aspx?p=ppppp" id="mylink" target="_blank" >
</form>
What a need is when this link is clicked, I need to trigger a client
side JavaScript function to append some other parameter to exsting query
string, and then new window opens. I have to run this from client.
<script language="javascript">
function MyFunc() {
document.form1.mylink.href += "&b=NePrameter";
}
</script>
This method doesn't work.
Anybody has some idea?
Thanks
Hardy
I have a web form with a Hyperlink control, which renders client code
like:
<form id="form1" name="form1">
<a href="a.aspx?p=ppppp" id="mylink" target="_blank" >
</form>
What a need is when this link is clicked, I need to trigger a client
side JavaScript function to append some other parameter to exsting query
string, and then new window opens. I have to run this from client.
<script language="javascript">
function MyFunc() {
document.form1.mylink.href += "&b=NePrameter";
}
</script>
This method doesn't work.
Anybody has some idea?
Thanks
Hardy