• Register
Welcome to the in5 Answer Exchange! This a place to get answers about in5 (InDesign to HTML5) and make requests.
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?
in how_to by (350 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;
});
by (183k points)
selected by