An easy way to add a simple pop up box to a website. I have set the text asking the user to download our application, like this, you can customise and design it to your wish.
How to add it?
- Go to your template.
- Paste this JavaScript codes bellow the <head> tag .
<script type="text/javascript">
function downloadmyapp() {
if (confirm("Download our Android application .") == true) {
window.open("http://www.techmobs.in/techmobs");
} else {}
}
</script> - Now search for <body> tag .
- Replace it with this code.
<body onload="downloadmyapp()"></body>
- Save your template. Done .
Post A Comment:
0 comments: