Forum Moderators: open

Message Too Old, No Replies

pop up window load automatically

         

yllai

2:39 am on Dec 15, 2004 (gmt 0)

10+ Year Member



anyone know how to make pop-up window load automatically as soon as a visitor views a particular web page...

or you have any example of this?

moltar

2:51 am on Dec 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You basically need to call an
onload
event in your body tag.

But now most of the browsers have pop-up blockers. Even IE now has internal pop up blocker built in.

Also generally it is a bad pratice to use pop ups without users initiating them. I suggest you think twice or more times before you go that path.

yllai

5:16 am on Dec 15, 2004 (gmt 0)

10+ Year Member



ok...thanks..

but do have any other way that can attract users' attention for latest news in my website?

MichaelBluejay

9:25 am on Dec 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Use a server-side include on each page to pull in a file containing the What's new.

In your <.htaccess> file:

AddHandler server-parsed.html

In your page

<!--#include virtual="whatsnew.html"-->

The SSI file (whatsnew.html)

<TABLE width=150 border=0 padding=5 bgcolor=yellow align=right><TR><TD>Blah blah blah></TD></TR></TABLE>