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

Navigating to a different HTML page within the same article file

  • August 23, 2016
  • 4 replies
  • 1393 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

frankl90835139AuthorAccepted solution
Level 2
August 23, 2016

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

August 31, 2016

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

Level 2
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>

August 31, 2016

Great! Thank you so much