Jump to content

Recommended Posts

im not familiar with javascript at all...i tried just copy pasting that, didn't work..caused an error earlier in my script...don't understand that. my question is do you need to have an open javascript tag to let the browser know thats what your using? or should just copy pasting that work?

Link to comment
https://forums.phpfreaks.com/topic/141385-back-button/#findComment-740076
Share on other sites

the javascript worked perfect. but whats the code for javascript to make it a button and not just a text link? any clue?

 

If you look in the code at the site I posted you would have found this:

 

<input type=button value="Back" onClick="history.go(-1)">

Link to comment
https://forums.phpfreaks.com/topic/141385-back-button/#findComment-740100
Share on other sites

my javascript is hazy:

 

http://javascript.internet.com/navigation/back-button.html

 

<a style="border: 2px outset rgb(204, 204, 204); padding: 2px; color: rgb(102, 102, 102); text-decoration: none;" href="#" onClick="history.go(-1)">Back</a> 

 

Should work.

 

heh just style the link should work and give you the most options

 

inputs without forms i keep forgetting is that valid?

Link to comment
https://forums.phpfreaks.com/topic/141385-back-button/#findComment-740104
Share on other sites

<a href='#' onClick='history.go(-1)'><input type='submit' name='Edit' value='Edit'></a>

 

works perfect. thanks guys. my whole thing is for the user to submit a form, and then display the results in a table for them to check over and if its not right click the edit button which will send them back to the form WITH the information they entered still in the fields. thanks again

Link to comment
https://forums.phpfreaks.com/topic/141385-back-button/#findComment-740112
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.