posted 21 years ago
Hi
I don't know a whole lot about javascript yet. I want to pass a javascript variable to both SRCs of a frame.
A solution I found relates to just one SRC of the frame, see below. How do I put a variable into both SRCs of the frame?
Thanks in advance
Frank
<html>
<head>
<script>
var url = "http://www.google.com"
</script>
</head>
<frameset rows="10%,*" on Load="top.mainFrame.location=top.url">
<frame src="menu.html">
<frame name="mainFrame" src="javascript:' '">
</frameset>
</html>
ps I put a space between on load to get past the javaranch security!