i have came across some challenge trying to generate text in another html page after clicking pagetext on initial page in the same site. Below is the set code - a script on the initial index page. Upon clicking the element i would like the text to be changed on details.html page (in this case just print "Goodbye") for testing first.
How can i tell javascript/jscript to change text on the element #dtitle on the other page?
$('details.html #dtitle')
this one obviously doesnt work - only moves to the second page. Is there any syntax?
function toTransit() {
location.href='details.html';
$('details.html #dtitle').html('Goodbye');
};
Thanks.