The following code is in a file called Dog_features.ht m
Is there a way to replace the word Dog in the code with a variable which resolves to the first word in the page's file name? e.g.
So if the 2nd snippet is in a file called 'Cat_features.h tm' then the file 'Cat_Page1.htm' would be loaded into the iframe.
Code:
document.getElementById('MyDiv').innerHTML = "<iframe src='Dog_Page1.htm'></iframe>";
Code:
document.getElementById('MyDiv').innerHTML = "<iframe src='Animal_Page1.htm'></iframe>";
Comment