• Register
Welcome to the in5 Answer Exchange! This a place to get answers about in5 (InDesign to HTML5) and make requests.

Is there a way to go to a URL on page load?

0 votes
I am creating an InDesign document that will be viewed on iPad. I want and external URL to open automatically when the user goes to page 5. Is this doable?

Or, is there a way to have an external URL show within a page of the Indesign document that plays on iPad?
asked Feb 16 in how_to by EdVillalobos (270 points)
    

1 Answer

0 votes
 
Best answer

You can easily embed URL content into a page by using Object > Insert HTML and entering <iframe> code, or by using the Web Content Overlay (recommended).

Otherwise, you could add some custom code to redirect when a certain page is reached:

$(document).on('newPage', function(e, data) { 
   var triggerPage = 5;
   var targetURL = 'http://example.com';
   if(data.index == targetPage-1) window.location = targetURL;
});
answered Feb 21 by justin (120,060 points)
selected Apr 12 by justin
...