Ask Question Forum:
Model Library:2025-02-08 Updated:A.I. model is online for auto reply question page
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by sasnaktiv
at 2024-07-21 21:44:01
Point:500 Replies:11 POST_ID:829066USER_ID:11969
Topic:
JavaScript;;
Hey Guys,
What's wrong with this javascript?
No matter what history I give it (-1) (-2) (-3) (-4) it only refreshes the page it is on.
If I change the "type" from "submit" to "button" nothing happens at all.
onclick='history.go(-3);return true;' has no effect either.
Have I lost my mind again?
Sas
What's wrong with this javascript?
No matter what history I give it (-1) (-2) (-3) (-4) it only refreshes the page it is on.
If I change the "type" from "submit" to "button" nothing happens at all.
onclick='history.go(-3);return true;' has no effect either.
Have I lost my mind again?
Sas
<form> <input name='Back' type='submit' value='Go Back' onclick='history.go(-3);' style='height: 22px; width:280px; FONT-SIZE:12px; font-family:Arial;' ></form> 1:2:
Expert: duncanb7 replied at 2024-07-23 08:53:26
Thanks for your points
Reminder and Note for other viewer: the solution is NOT fixed to author final question completely
have a nice day
Duncan
Reminder and Note for other viewer: the solution is NOT fixed to author final question completely
have a nice day
Duncan
Author: sasnaktiv replied at 2024-07-23 08:50:58
Thanks for the help and attention Duncan. You are the only person who responded to my question.
Sas
Sas
Author: sasnaktiv replied at 2024-07-22 09:04:06
But there's nothing wrong with any of the code you suggested.
And I want to do what's right by you.
Sas
And I want to do what's right by you.
Sas
Expert: duncanb7 replied at 2024-07-22 08:58:55
Just close this thread without any points since I didn't solve your issue
Duncan
Duncan
Author: sasnaktiv replied at 2024-07-22 08:55:58
Sorry Duncan,
The page is quite complex ad proprietary. So I can't send it along. I guess I'll have to continue trying to fix it or just give up on it.
How can I award you the points?
Sas
The page is quite complex ad proprietary. So I can't send it along. I guess I'll have to continue trying to fix it or just give up on it.
How can I award you the points?
Sas
Expert: duncanb7 replied at 2024-07-22 07:14:16
That page works at my side.
Could you send us the "not working" page ? including related code such as javascript
Duncan
Could you send us the "not working" page ? including related code such as javascript
Duncan
Author: sasnaktiv replied at 2024-07-22 07:12:35
Sorry Duncan,
Nothing seems to be working. Not even when I create direct buttons (targeted to the correct document) using post or get. It just keeps refreshing the existing page.
Sas
Nothing seems to be working. Not even when I create direct buttons (targeted to the correct document) using post or get. It just keeps refreshing the existing page.
Sas
Expert: duncanb7 replied at 2024-07-22 06:02:29
copy wrong code to your, missing onclick="javascript:..."
Try it
Duncan
Try it
Duncan
<!DOCTYPE html><html><head><title></title><script type="text/JavaScript"> function goBack() { window.history.go(-1);} </script></head><body > <button onclick="javascript:goBack();">Go Back</button></body></html> 1:2:3:4:5:6:7:8:9:10:11:12:13:14:15:16:17:18:
Expert: duncanb7 replied at 2024-07-22 06:00:29
Did you enable javascript enabed on browser> What browser are you using ?
If javascript is not enabled, you could not view the error message at browser develper tools ?
You know where is button for developer tools on browser ?
the html page, I tried, it works at my sides, no any issue
Why not send us your whole page ?
Duncan
If javascript is not enabled, you could not view the error message at browser develper tools ?
You know where is button for developer tools on browser ?
the html page, I tried, it works at my sides, no any issue
Why not send us your whole page ?
Duncan
Author: sasnaktiv replied at 2024-07-22 05:52:16
Thanks for getting back to me Duncan.
Unfortunately I still have the problem -- with either of your suggestions.
Go figure?
Sas
Unfortunately I still have the problem -- with either of your suggestions.
Go figure?
Sas
Accepted Solution
Expert: duncanb7 replied at 2024-07-22 00:44:59
500 points EXCELLENT
You need to do with window.history as following code
in tag or function
Duncan
in tag or function
Duncan
<form> <input name='Back' type='submit' value='Go Back' onclick='javascript:window.history.go(-3);' style='height: 22px; width:280px; FONT-SIZE:12px; font-family:Arial;' ></form> 1:2:
<!DOCTYPE html><html><head><title></title><script type="text/JavaScript"> function goBack() { window.history.go(-1);} </script></head><body > <button onclick="goBack()">Go Back</button></body></html> 1:2:3:4:5:6:7:8:9:10:11:12:13:14:15:16:17:18: