HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


HTML query

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#32181 (In Topic #7303)
Avatar

Community saint


OMG!! You guys have started me into HTML!! I know this is the OCP site, but, well… just thought I'd ask.

:O

I have a quick query - is there an html code or link I can use at the bottom of a page to return you to the previous viewed page? (Operating the same as the 'back page' browser button - just thought it would be more professional to put one on the page).





 





Back to the top
 
Posted
Rating:
#32182
Avatar

Fantastic :).

I think this'll work…

Code

<a href="#" onclick="Javascript: window.history.back(); return false;">Link</a>

It's a hyperlink to the top of the page, but when clicked it actually runs some Javascript, saying "take the browser back a step through the history". The "return false;" bit just says "ok, don't actually follow the real hyperlink (the #)" (it's not really needed, but it just is a bit cleaner).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#32184
Avatar

Community saint

html and java script is fun. Wait until you get into xhtml or xml.  :P

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#32185
Avatar

Community saint

Don't scare me!!

I am actually having fantastic fun building this site!! Can't wait for it to go 'public' and show it off…

Thanks for the tip Chris.

 





Back to the top
 
Posted
Rating:
#32186
Avatar

Community saint

My intention was not to scare you but the above is javascript not html any way good luck.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#32188
Avatar

Community saint

I was joking Ami. :lol:

Chris - it works a treat - thanks.

 





Back to the top
 
Posted
Rating:
#32189
Avatar

Community saint

ok thats good well good luck and I can not wait to see your site if you will let me see it.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#32190
Avatar

Community saint

Chris Graham said

Fantastic :).

I think this'll work…

Code

<a href="#" onclick="Javascript: window.history.back(); return false;">Link</a>

It's a hyperlink to the top of the page, but when clicked it actually runs some Javascript, saying "take the browser back a step through the history". The "return false;" bit just says "ok, don't actually follow the real hyperlink (the #)" (it's not really needed, but it just is a bit cleaner).

Hmmm - how easy would it be to put a button in that istead of a just a text link??

 





Back to the top
 
Posted
Rating:
#32192
Avatar

<input type="button" onclick="Javascript: window.history.back();" value="Click me" />


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#32199
Avatar

Community saint

That little bit of help has given me funky navigation buttons (that actually work)… Pretty basic stuff for you people, pretty advanced for me!!;)

Many thanks (again!!!:D)guys.



 

 





Back to the top
 
Posted
Rating:
#32201
Avatar

Community saint

Your welcome even though it was Chris and not me.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#32206
Avatar

Community saint


You give encouragement…

:thumbs:
 

 





Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: