Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
01-10-2012, 05:35 AM #1
- Join Date
- Jan 2012
- Thanked 0 Times in 0 Posts
Please Help with Java Script Code That Triggers Open In New Browser/Window
Hello all,I have a website and I would like a pop-up window to promote a new website venture I have. I would like for the new website to open in a completely new window/browser when my members simply click on the index page (No link or Buttons).The code below does most of what I ask lol,but it..
1.Only opens in a new tab (in same browser) while I would like for it to open in a completely new browser "full page" menu bar scroll tab and all.
2.It seems to open each and every time the page is clicked,which will be annoying to my members.I would only like for it to open 1 time per visitor every 24 hours or whenever cookies are cleared.
01-10-2012, 08:08 AM #2
- Join Date
- Jun 2002
- London, England
- Thanked 2,508 Times in 2,486 Posts
"_blank" causes the page to open in a new window.
To allow the page to be opened only once per 24 hours:-
"In the beginner's mind there are many possibilities, but in the expert's mind there are few” - Shunryu Suzuki (Japanese Zen priest, ?-1971)
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.