snuffed
10-24-2003, 10:19 AM
Hi everyone,
Can anyone give me some advice on how to print the frame "main" using a button in the pop-up navigator.
I'm trying to create something like a remote controll, but unfortunately i'm still very new to Javascript. The printing script looks as follows:
SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function myprint() {
window.parent.main.focus();
window.print();
}
// End -->
</script>
Same thing for a back button using the:
javascript:top.history.back()
script.
I'm not sure if this is even possible, but I would be thankfull for every little bit of help offered.
Just one more question: Do Pop-Ups have a minimum size of 150*100? I can't seem to get mine any smaller.
Well, thanx in the meanwhile.
I look forward to your replie.
Simon
Can anyone give me some advice on how to print the frame "main" using a button in the pop-up navigator.
I'm trying to create something like a remote controll, but unfortunately i'm still very new to Javascript. The printing script looks as follows:
SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function myprint() {
window.parent.main.focus();
window.print();
}
// End -->
</script>
Same thing for a back button using the:
javascript:top.history.back()
script.
I'm not sure if this is even possible, but I would be thankfull for every little bit of help offered.
Just one more question: Do Pop-Ups have a minimum size of 150*100? I can't seem to get mine any smaller.
Well, thanx in the meanwhile.
I look forward to your replie.
Simon