Can someone help find info. on how to make a link to a printable form? Thanks Josie
printable form
Collapse
X
-
Re: printable form
Pop this code into an html box where you want the button to show
<SCRIPT Language="Javascript">
function printit(){
if (window.print) {
window.print() ;
} else {
var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0
CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box WebBrowser1.outerHTML = "";
}
}
</script>
<SCRIPT Language="Javascript">
var NS = (navigator.appName == "Netscape");
var VERSION = parseInt(navigator.appVersion);
if (VERSION > 3) {
document.write('<form><input type=button value="Print this Page" name="Print"
onClick="printit()"></form>');
}
</script>
-
-
Re: printable form
Thanks for the script. Only I don't know where to put it.(before tag,inside tag,or after tag)? Am I even in the right area? I have another question about page naming. I'm redoing my webpages. I've got one page named samples. Now to show the samples,I've got two other pages (one for each sample) I want them to linkup with hyperlinks. So with my sample page it is www.mywedsite.com/samples.html. Would the hyperlink pages be www.mywebsite.com/ourgang/samples.com www.mywebsite.com/ournewfamily/samples.html Thank You Josie
Comment
-
Comment