Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Pop-up Ad

Status
Not open for further replies.

Bickyz

Technical User
Feb 7, 2003
239
GB
How do i create a pop-up ad. so that when people access the website the pop will be popped. I mean when index page opens i want the pop up to be opened aswell.
 
Pop-up Script To Open A Window When Your Page Loads.

Place the following script between the <HEAD> and </HEAD> tags:

<script language="javascript">
<!-- begin

function popup(Site)
{
window.open(Site,'PopupName','toolbar=no,statusbar=no,
location=no,scrollbars=yes,resizable=yes,width=275,height=200')
}

// end -->
</script>

And add the following code into your <BODY> tag:

onLoad="popup('URL/to/popup.html')"

Your <BODY> tag should then look something like this:

<BODY bgcolor="#ffffff" text="#000000"
onLoad="popup('
google.gif
juggle.gif

 
select the Body tag then click on Behaviours>Open Browser Window

[Peace][Pipe]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top