Form action with a fragment identifier?

L

Leif K-Brooks

I want to give a form an action containing a fragment identifier, as in
<form action="/foo#bar" method="post">. The spec doesn't seem to say
anything against this, and it seems to work in Firefox at least, but I'm
worried about what other browsers will do.

Obviously, the best way to find out is to test it myself, but before I
do that, I'm wondering if anyone here knows of any problems it could cause.
 
A

Adrienne Boswell

Gazing into my crystal ball I observed Leif K-Brooks
I want to give a form an action containing a fragment identifier, as
in
<form action="/foo#bar" method="post">. The spec doesn't seem to say
anything against this, and it seems to work in Firefox at least, but
I'm worried about what other browsers will do.

Obviously, the best way to find out is to test it myself, but before I
do that, I'm wondering if anyone here knows of any problems it could
cause.

The only thing that I can think of is it might confuse the user to have the
page suddenly move after a post.
 
J

J.O. Aho

Adrienne said:
Gazing into my crystal ball I observed Leif K-Brooks


The only thing that I can think of is it might confuse the user to have the
page suddenly move after a post.

And reread the page, it's just a quite bad thing to do, use an image instead
anchored.
 

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

Members online

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top