I need a PopUp scrip

Status
Not open for further replies.

Iulian

Registered Member
Joined
Jun 11, 2012
Messages
52
Reaction score
4
Hello
If someone can help me please! I need a popup script to send the traffic from mobile on http://sitename1 and from desktop on http://sitename2

an example: when someone came to my site and click on it, a popup will redirect it in a new window

The popup i want to open in a new window


Thanks
 
<html>
<head>
<script>
function popupRedirect(gohere, messageText)
{
alert(messageText);
window.open(gohere.toString(),'_blank');
}
</script>
</head>
<body>
<script>popupRedirect("http://google.com", "You can't even google for this shit");</script>
</body>
</html>

for a start it should be good !
 
Ok, thanks but how can i redirect on site 1 if a user comes on my site from a mobile device
and on site 2 if it comes from desktop

I dont have development knowledges. If you can help me!

Thanks
 
Ok, thanks but how can i redirect on site 1 if a user comes on my site from a mobile device
and on site 2 if it comes from desktop

I dont have development knowledges. If you can help me!

Thanks

Please ask a proper question next time and explain all things ! I did not understand in first post what you wanted exactly !

Now there is simple way to detect if user is from mobile device or desktop, is 2 ways by User Agent and I have used resolution checker <- YES ! ( this was neat trick for those who tricked User Agent's on phones :D I just needed to separate this traffic very strictly)

Next is simple One JavaScript function redirects mobile users other desktop users, as I see you are not familiar with coding so I suggest start and learn it it's handy !

I would write this for you but I'm busy.
 
Anyone who have a script like this and want to share it ??
 
If you are using wordpress than find some plugin for pop up and find plugin for detecting mobile device.you also must learn some coding basics so it ll bemore easy to you.
 
Thanks for code. Is there any option to disable the close button on popup?
 
sahuja.. you can tell me , how i can generate pop up on any website ?
 
Hello,

I have built a techsupport popup and it can be added in any website. The good thing is that when the popup appears, the user is unable to perform any action for example, he would not be able to close the browser or cannot perform any action. He has no way left except to call on the Popup's given number.
 
google for codepen, an awesome open source peer to peer website to share your code with others, (frontend)
 
Status
Not open for further replies.
Back
Top