With a small site of only a couple of pages or so, welcoming people to your site is easy. Just about all of your visitors will entry the site through your index.html page and you can easily incorporate a welcome message into that page. When your site has lots of pages containing information, then many of your visitors will be locating pages of specific interest to them using search engines or links from other sites and may not go anywhere near your index.html page. So how can you welcome them to your site when you don't know what page they will use to enter your site? Including a welcome message on each page of your site would be one solution but this would become annoying to those visitors traversing the many pages of your site who have already seen the welcome message on a previous page. So... the question is how can one use javascript or other methods to greet visitors that come to my site through a sub page, and not through the index.html page ? Thanks in advance.
you can put it on all pages and use a cookie to only load this message once or session if you are using php