HTML difference

  • Thread starter Thread starter Ken Thacker
  • Start date Start date
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
 
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
 
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
 
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
==============================================
 
Back
Top