Navigating to a different HTML page within the same article file | Community
Skip to main content
New Participant
August 23, 2016
Solved

Navigating to a different HTML page within the same article file

  • August 23, 2016
  • 4 replies
  • 1388 views

Hi all,

Is it possible to navigate to a different HTML page that is contained within the same article file? E.g. index.html contains an <a> tag that has a href pointing to page2.html? This seems to work in the Preflight app in iOS but not in Windows. Currently, I am using relative links, e.g.

<a href="page2.html">Page 2</a>

Should I be using a different syntax? E.g.

<a href="navto://page2.html">Page 2</a>

Thanks,

Frank

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by frankl90835139

I found the solution. Use JS instead. windows.location.href appears to work for both ios and windows.

4 replies

New Participant
August 31, 2016

Great! Thank you so much

New Participant
August 31, 2016

You'll have to write some JavaScript to get it working on iOS and Windows. For example:

<a onclick="window.location.href = 'page2.html'">Click me</a>

New Participant
August 31, 2016

Hi!
I'm interested in your solution. What did you exactly do?

frankl90835139AuthorAccepted solution
New Participant
August 23, 2016

I found the solution. Use JS instead. windows.location.href appears to work for both ios and windows.