Making a checkbox act as a link when clicked

T

travelerkgd

I'm having a unique problem. I need to have a checkbox link to a page when a
user checks on it. This seems possible on most browsers (Windows and Mac),
with the exception of IE for Windows (one can click a checkbox in the Mac
version of IE and it will click to a link).... what can I do to make this
possible in IE for Windows, which most indutries use as their standard?

example (which works everywhere except IE for Windows):

<a href="http://www.cnn.com"><input type="checkbox" name="checkbox"
value="checkbox"></a>

Thanks!
 
T

travelerkgd

Jon:

Just one question - this works fine, but I notice if I go back to the page I
clicked from, the checkbox clicked is still checked. Is there a way to have
the checkbox not checked upon returning to that page using the Back button on
the browser? Thanks!
 
T

travelerkgd

The checkbox actually has to link to a page, but the next respondent answered
teh question... howver I can appreciate your suggestion and can take this
into account with a slightly different problem. Thanks Ronx!
 
T

Thomas A. Rowe

The problem is that when you go back to the page in your browser, the browser is looking at a copy
stored in history

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
T

Tom Willett

You can't modify the history in someone else's browser.
--
===
Tom Willett
Microsoft MVP - FrontPage
---
FrontPage Support:
http://www.frontpagemvps.com/
===
| Hmm... is there a way to modify what's in history?
| --
| KGD
|
|
| "Thomas A. Rowe" wrote:
|
| > The problem is that when you go back to the page in your browser, the
browser is looking at a copy
| > stored in history
| >
| > --
| > ==============================================
| > Thomas A. Rowe (Microsoft MVP - FrontPage)
| > ==============================================
| > If you feel your current issue is a results of installing
| > a Service Pack or security update, please contact
| > Microsoft Product Support Services:
| > http://support.microsoft.com
| > If the problem can be shown to have been caused by a
| > security update, then there is usually no charge for the call.
| > ==============================================
| >
| > | > > Jon:
| > >
| > > Just one question - this works fine, but I notice if I go back to the
page I
| > > clicked from, the checkbox clicked is still checked. Is there a way
to have
| > > the checkbox not checked upon returning to that page using the Back
button on
| > > the browser? Thanks!
| > >
| > > --
| > > KGD
| > >
| > >
| > > "Jon Spivey" wrote:
| > >
| > >> Hi,
| > >> add an onclick to the checkbox.
| > >> <input type="checkbox" onclick="location.href='http://www.cnn.com';">
| > >> or to open a window
| > >> <input type="checkbox" onclick="window.open('http://www.cnn.com');">
| > >>
| > >> --
| > >> Cheers,
| > >> Jon
| > >> Microsoft MVP
| > >>
message
| > >> | > >> > I'm having a unique problem. I need to have a checkbox link to a
page
| > >> > when a
| > >> > user checks on it. This seems possible on most browsers (Windows
and
| > >> > Mac),
| > >> > with the exception of IE for Windows (one can click a checkbox in
the Mac
| > >> > version of IE and it will click to a link).... what can I do to
make this
| > >> > possible in IE for Windows, which most indutries use as their
standard?
| > >> >
| > >> > example (which works everywhere except IE for Windows):
| > >> >
| > >> > <a href="http://www.cnn.com"><input type="checkbox" name="checkbox"
| > >> > value="checkbox"></a>
| > >> >
| > >> > Thanks!
| > >> >
| > >> > --
| > >> > KGD
| > >>
| > >>
| > >>
| >
| >
| >
 
J

Jon Spivey

Hi,
You don't need to modify the history just put some script at the bottom of
the page - before </body> to uncheck the box
<script type="text/javascript">
document.forms[0].YourCheckBoxName.checked=false;
</script>
 

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