mordred58
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by mordred58
-
-
I am attempting to create an online "manual" with a html files and an array. I've been able to get the string name of the html file to appear, but not the content of the page. Where am I going wrong?
function referencePages () { var rCurrentPage = 0; var refArray = ["R00_Ref_Cover.html", "R01_Abbreviations.html","R02_Definitions.html"]; var rTotalPages = refArray.length; document.getElementById("page_content").innerHTML = refArray[rCurrentPage]; rNextButton (); rBackButton (); }
External HTML file into innerHTML
in JavaScript
Posted
Thank you to both of you. I thought I could do it directly in Javascript. I'll start looking at AJAX.