I have very limited use of JS and need some help.
I need to link a site on the web to my mainFrame in the frameSet, with out hitting a button (so when the person opens my frameSet it loads the site in my mainFrame). The code bellow works in some browsers but not all… and I need to work in all browsers. Are there better lines of code to use? Or how can I change this to work in every browser…
var frameSRC
if (location.search)
frameSRC = location.search.substring(1)
else
frameSRC = “The Page I want to Show”
document.write(‘<FRAMESET “rows=”40,592*” cols=”157″ frameborder=”no”>’)
document.write(‘<FRAME SRC=”topnav_frame.html”>’)
document.write(‘<FRAME SRC=”‘ + frameSRC + ‘” name=”mainFrame”>’)
document.write(‘</FRAMESET>’)