i want to develop a html page where i want two option button for red and green when

  • Thread starter Thread starter imported_Jack the Ripper
  • Start date Start date
I

imported_Jack the Ripper

Guest
You need to also use JavaScript with HTML

but I can even tell how to write exclusively with HTML if you want

now open the notepad and take down these codes then save as index.html

Index.html
-------------------

<html>
<frameset rows="10%,*">
<frame name="menu" src="menu.html" />
<frame name="color" src="color.html" />
</frameset>
</html>

now again open the notepad and type following codes save it as

menu.html
-------------------

<html>
<body>
<a href="redcolor.html" target="color">Show Red </a>
<a href="greencolor.html" target="color">Show Green</a>
</body>
</html>

now make two another html documents named redcolor.html and greencolor.html

greencolor.html
----------------------------

<html>
<body bgcolor="Green">
</body>
</html>

Redcolor.html
-------------------------

<html>
<body bgcolor="Red">
</body>
</html>


keep all files in a same directory
 
i click red option button? the background of page will be red and when i click green option button the background of page will be green
 
You need to also use JavaScript with HTML

but I can even tell how to write exclusively with HTML if you want

now open the notepad and take down these codes then save as index.html

Index.html
-------------------

<html>
<frameset rows="10%,*">
<frame name="menu" src="menu.html" />
<frame name="color" src="color.html" />
</frameset>
</html>

now again open the notepad and type following codes save it as

menu.html
-------------------

<html>
<body>
<a href="redcolor.html" target="color">Show Red </a>
<a href="greencolor.html" target="color">Show Green</a>
</body>
</html>

now make two another html documents named redcolor.html and greencolor.html

greencolor.html
----------------------------

<html>
<body bgcolor="Green">
</body>
</html>

Redcolor.html
-------------------------

<html>
<body bgcolor="Red">
</body>
</html>


keep all files in a same directory
 
You need to also use JavaScript with HTML

but I can even tell how to write exclusively with HTML if you want

now open the notepad and take down these codes then save as index.html

Index.html
-------------------

<html>
<frameset rows="10%,*">
<frame name="menu" src="menu.html" />
<frame name="color" src="color.html" />
</frameset>
</html>

now again open the notepad and type following codes save it as

menu.html
-------------------

<html>
<body>
<a href="redcolor.html" target="color">Show Red </a>
<a href="greencolor.html" target="color">Show Green</a>
</body>
</html>

now make two another html documents named redcolor.html and greencolor.html

greencolor.html
----------------------------

<html>
<body bgcolor="Green">
</body>
</html>

Redcolor.html
-------------------------

<html>
<body bgcolor="Red">
</body>
</html>


keep all files in a same directory
 
You need to also use JavaScript with HTML

but I can even tell how to write exclusively with HTML if you want

now open the notepad and take down these codes then save as index.html

Index.html
-------------------

<html>
<frameset rows="10%,*">
<frame name="menu" src="menu.html" />
<frame name="color" src="color.html" />
</frameset>
</html>

now again open the notepad and type following codes save it as

menu.html
-------------------

<html>
<body>
<a href="redcolor.html" target="color">Show Red </a>
<a href="greencolor.html" target="color">Show Green</a>
</body>
</html>

now make two another html documents named redcolor.html and greencolor.html

greencolor.html
----------------------------

<html>
<body bgcolor="Green">
</body>
</html>

Redcolor.html
-------------------------

<html>
<body bgcolor="Red">
</body>
</html>


keep all files in a same directory
 
Back
Top