how to create popup on mouse over Event or page load in java script
We Digital Gateway A Leading Digital Marketing agency very thankful to for visit our Website.
To create popup in java script on click event please create this Function :
call function on button : <button id="popup" onclick="div_show()">Popup</button>
Create function in java script :
<script> function div_show() { document.alert("Hello world !"); } </script>
you can also call this function on mouse over :
<button id="popup" onmouseover="div_show()"> Popup </button>
in another case if you want to show popup after some delay time. you can set this time see.
Java script function to show url in popup :
<script type="text/javascript" language="javascript">
function enter() { window.open('fillup/digital-marketing.aspx', '', 'height=880,width=750,left=10,top=10'); }
</script>
<script> function myFunction() { setTimeout(function () { enter() }, 35000); } </script>
as you can see in second function we have set delay time 35 second. that mean function delay action 35 second. you can call this function for any event. if you want to set this function on page load please replace body teg.
<body onload="myFunction()" >
if this information is useful to you please give us feedback if you have any query please write us an E-mail to info@digitalgateway.in our developers team is always here to help you.
|