G
Graeme
Hello
What I'm trying to do is print a frame called 'bottom' from a button on a
different form ('upper'). This works in the aspx page (thanks to
codelifter.com - googled it):
<script>
function framePrint(whichFrame){
parent[whichFrame].focus();
parent[whichFrame].print();
}
</script>
and in the body:<a href="javascript:framePrint('bottom');">CLICK TO PRINT
</a>
But I want to run script from ImageButton (on 'upper' frame), but can't get
it right! Something like ...
Response.Write("<script
language='javascript'><href='javascript:framePrint('bottom');'>;</script>")
???
What's wrong please?
Thanks
Graeme
What I'm trying to do is print a frame called 'bottom' from a button on a
different form ('upper'). This works in the aspx page (thanks to
codelifter.com - googled it):
<script>
function framePrint(whichFrame){
parent[whichFrame].focus();
parent[whichFrame].print();
}
</script>
and in the body:<a href="javascript:framePrint('bottom');">CLICK TO PRINT
</a>
But I want to run script from ImageButton (on 'upper' frame), but can't get
it right! Something like ...
Response.Write("<script
language='javascript'><href='javascript:framePrint('bottom');'>;</script>")
???
What's wrong please?
Thanks
Graeme