PDA

View Full Version : [Internet] HTML buttons



Money Fist
12-05-2004, 11:14 PM
i have 5 button questions

i have 2 frames on my page
frame1.htm
and frame2.htm

im in need of

button to open new window
button to close the new window
button to make new window yellow

button to make target frame2 green
button to make target frame2 blue


the first 3 are beyond my meager knowledge
but the last 2 i am having difficulty with

this is the format i use to make my buttons

<FORM METHOD="LINK" ACTION="frame1.htm">
<INPUT TYPE="submit" VALUE="green frame2">
</FORM>

thanks in advance

tesco
12-06-2004, 12:22 AM
Code to close the new window:

For a regular window, use this:

<a href="javascript:window.close()">Close</a>

If you are using a frameset, then use this in any page in any frame in the frameset:

<a href="javascript:top.window.close()">Close</a>

Code to open in new window:

<a href="whatever" target="_blank">Name of URL or image</a>


and what do you mean make the window yellow and make the target fram2 green and blue? :unsure:

Money Fist
12-06-2004, 12:27 AM
like background colour of the target frame (frame2.htm)

thank u soooo much for that

djlove
08-27-2006, 04:54 PM
thax for letting me no