This piece of code produces a page with two vertical columns:
<frameset id="set" cols="*,*">
<frame id="frame1" src="index.html">
<frame id="frame2" src="index2.html">
</frameset>
However, I want to be able to set the cols
value independantly like this:
function setvalue(){
var framewidth=prompt("Enter the default right column width : ", "50%")
}
and then change the cols
value... This is where my problem lies, I can't get the script right... Here's what it looks like:
<Script>
document.getElementByid["set"].cols.value = framewidth;
</script>
Where am I going wrong?