(ASK) Multi Window WP

irfan666

Newbie
Joined
Oct 3, 2015
Messages
20
Reaction score
1
Hi, Does anyone know how to make wordpress site autoload multi tab. The scenario is like this when im visiting my site it will automatically open several tab window with random posting per each tab.


Thanks a lot
 
Basically opening additional Windows but then displaying different pages of the site in each one?
Im guessing a lot of browsers would block that though?
 
Do you know how to do that? Please let me know. Thanks
 
There is no way, to my knowledge, that one can programmatically launch a new tab using JavaScript. However, you could create several html post links with target="_blank" attributes and hide them via CSS, then invoke multiple jQuery click events to open them up.

Code:
<html>

<head>
    <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
    <script>
         $(document).ready(function() {
             $('#post-1').get(0).click();
             $('#post-2').get(0).click();
             $('#post-3').get(0).click();
         });
    </script>
</head>

<body>
    <a id="post-1" target="_blank" style="display:none;" href="http://google.com">Google</a>
    <a id="post-2" target="_blank" style="display:none;" href="http://en.wikipedia.org/wiki/Main_Page">Wikipedia</a>
    <a id="post-3" target="_blank" style="display:none;" href="http://stackoverflow.com/">Stackoverflow</a>
</body>

</html>

That being said, davids355 is correct that most browsers will block this depending on their configuration.
 
Last edited:
I doubt you can get this to work on browsers nowadays...
This is considered a popup or a popunder, depending.
 
Yes your basically asking how to use popup's without any issues. popup's are big no no to browsers.
 
Back
Top