This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > FrontPage Programming > September 2004 > Command Buttons
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Mark Gould 2004-09-24, 7:16 pm |
| I am developing a web page and need to use 3 command
buttons to redirect the person who clicks on it to a
internet web site i.e. http://www.usatoday.com. I tried
various ways using the onClick method but haven't had much
luck. I am sure it is a simple thing to do but for the
life of me I can't see how. Has anyone done this before?
If so what did you do?
Thanks,
Mark
| |
| Kevin Spencer 2004-09-24, 7:16 pm |
| Here's an example:
<input type="button" value="Read USA Today" name="B1"
onclick="document.location = http://www.usatoday.com">
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
"Mark Gould" <anonymous@discussions.microsoft.com> wrote in message
news:0a8b01c4a253$952a0200$a501280a@phx.gbl...
> I am developing a web page and need to use 3 command
> buttons to redirect the person who clicks on it to a
> internet web site i.e. http://www.usatoday.com. I tried
> various ways using the onClick method but haven't had much
> luck. I am sure it is a simple thing to do but for the
> life of me I can't see how. Has anyone done this before?
> If so what did you do?
>
> Thanks,
>
> Mark
| |
| Mark1110 2004-09-24, 7:16 pm |
| Kevin,
I tried making a simple web page using your example:
<html>
<head>
<title></title>
</head>
<body>
<input name="B1" type="button" value="Click Me" onClick="document.location =
http://www.usatoday.com" >
</body>
</html>
When I brought up the web page and clicked on the button, nothing happened?
Am I doing something wrong?
Thanks,
Mark
"Kevin Spencer" wrote:
> Here's an example:
>
> <input type="button" value="Read USA Today" name="B1"
> onclick="document.location = http://www.usatoday.com">
>
> --
> HTH,
> Kevin Spencer
> ..Net Developer
> Microsoft MVP
> I get paid good money to
> solve puzzles for a living
>
> "Mark Gould" <anonymous@discussions.microsoft.com> wrote in message
> news:0a8b01c4a253$952a0200$a501280a@phx.gbl...
>
>
>
| |
| Kevin Spencer 2004-09-24, 7:16 pm |
| Sorry Mark. I left out some single quotes around the URL.
<input name="B1" type="button" value="Click Me" onClick="document.location =
'http://www.usatoday.com'" >
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
"Mark1110" <Mark1110@discussions.microsoft.com> wrote in message
news:A21BBADF-0157-404F-9C50-9EB0C998B6A3@microsoft.com...
> Kevin,
>
> I tried making a simple web page using your example:
>
> <html>
> <head>
> <title></title>
> </head>
>
> <body>
>
> <input name="B1" type="button" value="Click Me" onClick="document.location
=
> http://www.usatoday.com" >
>
> </body>
> </html>
>
> When I brought up the web page and clicked on the button, nothing
happened?[color=darkred]
> Am I doing something wrong?
>
> Thanks,
>
> Mark
>
>
>
> "Kevin Spencer" wrote:
>
| |
| Steve Easton 2004-09-24, 7:16 pm |
| Needs a minor modification. Try this:
<input type="button" value="Read USA Today" name="B1"
onclick="document.location='http://www.usatoday.com'">
Notice the single apostrophes. 'http://www.usatoday.com'
--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
"Mark1110" <Mark1110@discussions.microsoft.com> wrote in message
news:A21BBADF-0157-404F-9C50-9EB0C998B6A3@microsoft.com...[color=darkred]
> Kevin,
>
> I tried making a simple web page using your example:
>
> <html>
> <head>
> <title></title>
> </head>
>
> <body>
>
> <input name="B1" type="button" value="Click Me" onClick="document.location =
> http://www.usatoday.com" >
>
> </body>
> </html>
>
> When I brought up the web page and clicked on the button, nothing happened?
> Am I doing something wrong?
>
> Thanks,
>
> Mark
>
>
>
> "Kevin Spencer" wrote:
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|