View Single Post
  #4 (permalink)  
Old December 7th, 2003, 06:24 AM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

You can't nest a button inside a <a> tag. When you click the button, its click event will fire, but it won't take you to the URL referenced in the <a> tag.

To change the address from a button, try this:

<input type="button" value="Sales by Customer" onclick="window.parent.frames.frame2.document.loca tion.href='Frame4.html';">

When you click the button, the document in the second frame (referenced as window.parent.frames.frame2 where parent is the entire frameset that has a frame collection which contains a frame called frame2) has it document.location.href changed to the requested address.

Does this help?

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Reply With Quote