WebSite X5Help Center

 
Fermin Chong Wong
Fermin Chong Wong
User

Displaying automatically any page  en

Author: Fermin Chong Wong
Visited 1532, Followers 1, Shared 0  

I am still using Version 13 Prof. I will use V.14 Prof later (after some convertion bugs are fixed, I have V.14 since Oct. 11).

When a given page is loaded, I want to display (in a different tab) a page (for instance a photo/place in Google Maps) automatically. Now I have a link to that page and manually you have to click on the link in order to display it).

Posted on the
3 ANSWERS - 1 CORRECT
John S.
John S.
User

Hello Fermin

I am not quite sure that I understand you right - but I give it a try :

If you want a page to be loaded instead of another page, then you can make a redirect on the first page loaded.

Example : <meta http-equiv="refresh" content="10; url=http://www.Yournewsitename.xx" /> BUT you cannot have it to open in a new tab without adding some JS.

But why do you want to open another page and then redirect - what is the reason that you open page1 where you want page2 to open on another tab - why not specify that page2 should open in a new tab instead of opening page1 ????

Here is some code you could put in page1 in a html-object.

Then when page 1 is opened, then another page ( Google search - if you want it to be maps you could use "http://www.google.com/maps") is opened in another tab.

<html><head><scriptsrc="http://code.jquery.com/jquery-1.11.0.min.js"></script><script> jQuery(document).ready(function(){ newTab();});function newTab(){var form = document.createElement("form"); form.method ="GET"; form.action ="http://www.google.com"; form.target ="_blank"; document.body.appendChild(form); form.submit();}</script></head><body><aclass="my-link">link</a></body></html>

I hope this was helpful for you.

Kind regards

John S.

Read more
Posted on the from John S.
John S.
John S.
User

Hello again

When you upload this ( the JS code ) , you will maybe see that a pop-up will be blocked.

You can test it in preview.

But was this was you meant ?

Kind regards

John S.

Read more
Posted on the from John S.
Fermin Chong Wong
Fermin Chong Wong
User
Author

Thanks

Read more
Posted on the from Fermin Chong Wong