how to open site in popunder

Started on the old forum in May 2010 · view the original in the archive · old links redirect here

10 replies · 1,181 views · started 16 years ago · 1 min read

TL;DR · summary of 10 replies
  • - the fix was not provided, as the thread did not conclude with a resolved solution.
  • - The approach taken by placing both scripts in the head section and ensuring popunder is opened upon page load seems correct based on previous comments.
  • - However, there was no specific code or further explanation given for integrating openwin() into the popunder URL.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

2 participants
slowy Senior · 357 posts #1

here is popunder code

<script> var popunder="http://coding-talk.com" var winfeatures="width=600,height=600,scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1,status=1,directories=0" var once_per_session=1 function get_cookie(Name) { var search = Name + "=" var returnvalue = ""; if (document.cookie.length > 0) { offset = document.cookie.indexOf(search) if (offset != -1) { // if cookie exists offset += search.length // set index of beginning of value end = document.cookie.indexOf(";", offset); // set index of end of cookie value if (end == -1) end = document.cookie.length; returnvalue=unescape(document.cookie.substring(offset, end)) } } return returnvalue; } function loadornot(){ if (get_cookie('popunder')==''){ loadpopunder() document.cookie="popunder=yes" } } function loadpopunder(){ win2=window.open(popunder,"",winfeatures) win2.blur() window.focus() } if (once_per_session==0) loadpopunder() else loadornot() </script>

i want to open "openwin" from following script(in above code 2nd line)

<script type="text/javascript"> function openwin() { <? echo "window.open(\"".$poplink2."\")"; ?> } </script>

how to do this ???????

something else Fellow · 2,296 posts #4

You Have Posted The Answer In Your First Post...... Everything you Need Is in Your First Post ?

something else Fellow · 2,296 posts #6

this javascript has to be placed in the <head> section of your page for it to work

slowy Senior · 357 posts #7

i want to open "openwin" from following script(in above code 2nd line)

<script type="text/javascript"> function openwin() { <? echo "window.open(\"".$poplink2."\")"; ?> } </script>

how to do this ???????

how to put openwin in link???

something else Fellow · 2,296 posts #8

oh so u want the popunder to open when a link is clicked rather than when page is opened? if so it would be on the lines of this:

<a href="javascript:openwin()">Link</a>

But You would also need to open your original link in the function openwin() aswell

something else Fellow · 2,296 posts #10

just put your first code in the head of your page then as soon as that page opens it opens another page (popunder) .... it works fine for me

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close