Skip to content
WJunction - Webmaster Forum

How to add delay to pop up script

Status
Not open for further replies.

First-Dragon

Established Member
187
2011
130
Hello, i need some help in coding, How can i add execution delay of for example 5 seconds or 10 seconds to a pop up script that i have in my site header (WordPress site), it is a pop up code from advertising company i am using).

Script looks like this:

Code:
<script data-cfasync="false">
var _gun...;
_gun...;
_gun...;
_gun...;
</script>
<script data-cfasync="false" src="//cdn.example.com/js/gp.min.js?s=S0005404"></script>

Thank you.
 
Last edited:

4 comments

Thanks for your reply. The problem is there is no functions inside javascript so i can use setTimeout on them. Is there any way to call this inside a function:

Code:
<script data-cfasync="false" src="//cdn.example.com/js/gp.min.js?s=S0005404"></script>
 
Last edited:
If you are facing any technical issue in your computer window and apps then window and apps blogger will help you to resolve your problem and will help in recover the damage, The blog contains each necessary details to get the technical support.
 
Status
Not open for further replies.

About the author

F
Established Member · Joined
187
Messages
130
Reactions
43
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom