PDA

View Full Version : new window button help


gcapp
01-24-2003, 06:21 PM
Can someone help me?

I have this javascript to print a page by clicking a button:

<!-- Begin
if (window.print) {
document.write('<form>'
+ '<input type=button name=print value="Print This Page" '
+ 'onClick="javascript:window.print()"></form>');
}
// End -->



What I am trying to do or find is the same basic thing, but i want it where someone clicks the button and a new window appears taking them to a URL.

I can't seem to get it right - any help??

Gary

A1ien51
01-24-2003, 07:49 PM
Pop Up window???

<input type="button" name="B" value="New Window" onclick="window.open('TheUrl.htm')">

also look at this

http://www10.brinkster.com/A1ien51/scripts/PopUpWinGenV3.htm