Next box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

There is something wrong with this code I found, for a next box.
I get an error, frontpage needs to close.

<input type="button" value="Next"
onclick="location.href=bear-fishing-sculpture.htm'"/>

It makes a grey box with Next on it.

Looks like there is too many "' . But, I am using it in a css linked page.
Is it not a good idea to use this, is it better to use <a
href="http://www.mysitehere.htm">Click for the next page</a>
Thank you,
Susie
 
The "grey box" is your button. If you didn't want a button, but just a link,
use this:

<a href="bear_fishing_sculpture.htm">NEXT</a>

nothing else.
is it better to use <a href="http://www.mysitehere.htm">Click for the
next page</a>

Two problems: "www" needs to be followed by a website (.com) not by a page
(.htm), and you didn't close the anchor with ">" after "Click here ... It
should end "page></a>" Just do it as above.
 
Susie said:
There is something wrong with this code I found, for a next box.
I get an error, frontpage needs to close.

<input type="button" value="Next"
onclick="location.href=bear-fishing-sculpture.htm'"/>

It makes a grey box with Next on it.

Looks like there is too many "' . But, I am using it in a css linked
page. Is it not a good idea to use this, is it better to use <a
href="http://www.mysitehere.htm">Click for the next page</a>
Thank you,
Susie

I even know the page where you got this from ;-))

If I can type this correctly, it should be:
<input type="button" value="Next"
onclick="location.href='bear-fishing-sculpture.htm'"/>
where the last few characters are (spaced out for ease of reading)
' " />

That is the href= must be in quotes but so also must the onclick=
So two sets of quotes are used - double quotes around the onclick= and single quotes around the href=

I see nothing wrong with this either
<a href="http://www.mysitehere.htm">Click for the next page</a>

It is a matter of choice as to whether you want a button or text
 
Thanks so much:)

Thor said:
The "grey box" is your button. If you didn't want a button, but just a link,
use this:

<a href="bear_fishing_sculpture.htm">NEXT</a>

nothing else.


Two problems: "www" needs to be followed by a website (.com) not by a page
(.htm), and you didn't close the anchor with ">" after "Click here ... It
should end "page></a>" Just do it as above.
 
Hi Trevor:)) Thanks, I have it now, you know me by now, you have to really
spell it out for me, lol.
Susie B
 
Back
Top