|
-
Sep 17th, 2003, 04:03 AM
#1
Thread Starter
Hyperactive Member
Calling javascript in asp.net
I have javascrip function in theweb user control
and I am trying to call the function on thc Onclick event of web control button
<script language="Javascript">
function BackMe(){
javascript:history.back()
}
</script>
but I am getting error ie )expected and is not working.
can anybody help me out .
Thanks
pPCC
-
Sep 17th, 2003, 06:15 PM
#2
Frenzied Member
Try this ( don't forget the ; at the end. )
<script language="Javascript">
function BackMe(){
window.location.history.go(-1);
}
</script>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|