Navigating to a different HTML page within the same article file

Avatar

Avatar

frankl90835139

Avatar

frankl90835139

frankl90835139

23-08-2016

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

frankl90835139

Avatar

frankl90835139

frankl90835139

23-08-2016

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

Answers (3)

Answers (3)

Avatar

Avatar

LennartNIC

Avatar

LennartNIC

LennartNIC

31-08-2016

Great! Thank you so much

Avatar

Avatar

frankl90835139

Avatar

frankl90835139

frankl90835139

31-08-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>

Avatar

Avatar

LennartNIC

Avatar

LennartNIC

LennartNIC

31-08-2016

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