Random page button

Thank you so so much – right now, when I click the button, the navigation frame shows up within the main area.

Damn I forgot to correct one line after pasting it from my note, the corrected line is:

window.top.document.getElementById('main').contentWindow.location.href = randomPage;

I edited it in my last post so you can copy the whole thing again, sorry for that.

To explain what was going on, if you link an empty string, the page itself will be used, which was the nav.html. That’s why it was opened in the content area. This tells us that it’s actually working, we just need to open the correct URL now. :grinning_face_with_smiling_eyes:

Oh! I’m super embarrassed that I missed this. Thank you so much, it works now!!!

Awesome, I’m glad it works, and even the new tab works. :partying_face: