Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting frameset document with javascript

Status
Not open for further replies.

49er

Programmer
Aug 24, 2000
38
US
Has anyone written a frameset page on the fly with javascript based on the browser detected? Any help is greatly appreciated.
 
document.write(&quot;<frameset cols=*,10><frame src=\&quot;whatever.htm\&quot;><......&quot;)

is that what you mean ? why do you want to detect the browser ?
 
Thanks for the reply. I was on the right track but I left the actual frameset lines out of the script section. The reason I want to do this is because I have an online mapping application where I have constructed a toolbar. This toolbar &quot;sits&quot; right on top of the map (in a different frame). I want to adjust the dimensions of the toolbar frame slightly to account for the differences between nn and ie (nn requires a bit more space).
 
you can rewrite the whole page with the document.write ... but i hope for you there must be a way to redimension frames once they are loaded - altough i remember a thread about redimensionning frames showing that it wasn't that easy ....
well if the document.write... tricks does what you want to, maybe it's not necessary to look for a more elegant solution ;-) !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top