Back

Pop-Up Window 005

 


Sign up for Weekly Newsletter

This script opens a Pop-up window and displays another webpage.  In this example the link invites the visitor to sign up for a weekly newsletter, however  it could easily be change to invite the visitor to stay apprised of specials.  Another little trick is to place a close function in the submit button so the Pop-up will close when the visitor submits the form.  Want another little trick...  You can use a PHP Email Script to handle the submissions.

Place script between the <HEAD></HEAD> tags.

<script>

function openpopup(){
var popurl="weekly news letter.htm"
winpops=window.open(popurl,"","width=200,height=200,")
}

</script>
 

Place where needed in the body of the HTML Document.

<a href="javascript:openpopup()">Sign up for Weekly Newsletter</a>

Place script between the <HEAD></HEAD> tags.

Paste script where needed in the body of the HTML Document.


Copyright 2003 Ultimatephp