Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Navigating to a different HTML page within the same article file

Avatar

Avatar
Validate 1
Level 1
frankl90835139
Level 1

Likes

0 likes

Total Posts

11 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
frankl90835139
Level 1

Likes

0 likes

Total Posts

11 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
frankl90835139
Level 1

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
Validate 1
Level 1
frankl90835139
Level 1

Likes

0 likes

Total Posts

11 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
frankl90835139
Level 1

Likes

0 likes

Total Posts

11 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
frankl90835139
Level 1

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
Level 1
LennartNIC
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
LennartNIC
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
LennartNIC
Level 1

31-08-2016

Great! Thank you so much

Avatar

Avatar
Validate 1
Level 1
frankl90835139
Level 1

Likes

0 likes

Total Posts

11 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
frankl90835139
Level 1

Likes

0 likes

Total Posts

11 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
frankl90835139
Level 1

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
Level 1
LennartNIC
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
LennartNIC
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
LennartNIC
Level 1

31-08-2016

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