HTML difference

K

Ken Thacker

I tried substituting a pushbutton for a link on the message board I'm
trying to create, but I can't get the button when clicked to put it
into the correct frame, always shows up in the same frame. Here is the
HTML for the button:

<form target="article">
<input type="button" value="Post Message" name="B3" style="width: 160"
onClick="window.location.href='disc6_post.htm'">

Here is the HTML for the underlined link:

<a href="disc6_post.htm" target="article">Post Message</a>

Can someone please tell me what the difference is in these HTML
examples? I would really like to use the button if at all possible.
Thanks for any advice. It will be most appreciated!
Ken
 
J

Jon Spivey

Hi,
To change a page in a frameset with javascript you need to specify the frame
name like this

<input type="button" value="Post Message" name="B3" style="width: 160"
onClick="parent.article.location.href='disc6_post.htm'">

Cheers,
Jon
 
K

Ken Thacker

Jon said:
Hi,
To change a page in a frameset with javascript you need to specify the frame
name like this

<input type="button" value="Post Message" name="B3" style="width: 160"
onClick="parent.article.location.href='disc6_post.htm'">

Cheers,
Jon
 
T

Thomas A. Rowe

If you are using the FP Discussions web, then you should use the Frameset option when you created
it, and once created you can not modified the layout, as in most case it will no longer work.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top