deadlock Message Board
[ July Full List | Post A Reply ]

how about 2 seperate scripts?
From Andrew on 11 July '02
replying to Re: Script posted by Ted

2 seperate scripts;

print page:
Use this print button to allow your surfers to directly print a
web page simply by clicking on the button!

Directions: Simply copy the below into the <body> section of your


<SCRIPT Language="Javascript">

function printit(){
if (window.print) {
window.print() ;
} else {
var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0

document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting
dialog box WebBrowser1.outerHTML = "";


<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()">



make home page:

<p align="center"><a class="chlnk" HREF="http://www.DESIRED"
onClick="'url(#default#homepage)';this.setHomePage('http://www.DESIRED');" style="color: #0000FF">
<font face="Verdana"

This Your Home Page!</b></font></a>

Your Reply

*Your name:
*Message subject:
Home page title:
Home page URL:
(if you'd like to receive automatic replies by email)