 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
mjpliv

Joined: 11 May 2004 Posts: 402 Location: Nova Scotia
|
Posted: Sat Jul 17, 2004 2:57 pm Popup problem |
|
|
|
From my email -
| Quote: |
Hi,
I am a small business owner. Recently I made business website by myshelf. Here is one little issue that I need to figure out.
I want to open a small window when index page is first loading.
how can I do that?
Thank you so much, |
|
|
mjpliv

Joined: 11 May 2004 Posts: 402 Location: Nova Scotia
|
|
pesty
Joined: 22 Jul 2004 Posts: 28
|
Posted: Thu Jul 22, 2004 7:52 pm |
|
|
|
Hello the small business owner,
The tutorial site is a good site and worthy of reading. But I thought you might like a shoter version of the code. Less typing!
Use the javascript onLoad event handler. This event handler wil always go in the <body> tag
This will produce a pop-up window when the page opens.
<body onLoad="window.open('text.html','new','width=200,height=220')">
This tag opens with the index page, it creates the dialog or display box, all you do is add your photo or text.
You can adjust the windows size with the width and height attrributes. If you have trouble, check your syntax. Make sure all the commas, dots, and do-dads are right where they should be.
Pesty |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
|
 |
|
|
|
|
|
|
|