MyBB Community Forums

Full Version: add popup in my forum
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
When Someone Click Anywhere In My Site a my second website open in new tab.how can i do this
can any one help me
I used java script to do that.

paste that script just before the closing of <head> tag or add this in header include template
<script>
var a=0;
function popup() {
if(a==0){
window.open ("http://webtinkers.net","popup","menubar=1,resizable=1,width=450,height=550");
a++;
}
}
</script>
Edit above code according to your needs

and add onclick="popup()" in your body tag like <body onclick="popup()"> you can add it in body tag or any different division if you want it to work only on a particular div.
I Want Link Open New Tab With Full Screen
Sorry for the late reply for a newtab on click then use the script below
script>
var a=0;
function popup() {
if(a==0){
window.open ("http://webtinkers.net","_blank");
a++;
}
}
</script>
Thanks Sir Its Working But I Want One Time Popup Per Visit
You mean auto popup?
no..
i mean popup open once per visit per day on click
It is the same thing if a visitor clicks on everywhere in body tag then it ll open a newtab but only once not twice.
i mean once per ip next 24 hour
Pages: 1 2