Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
61
rated 0 times [  68] [ 7]  / answers: 1 / hits: 23656  / 11 Years ago, fri, september 27, 2013, 12:00:00

I've this button:



<input id=backbutton type=button value=Back onClick=javascript:window.history.back()/>


how I could add url parameters to return in back page, like index=1, with this javascript function?


More From » function

 Answers
4

Like this :



document.getElementById('backbutton').addEventListener('click', function() {
window.location = document.referrer + '?index=1';
}, false);

[#75386] Thursday, September 26, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
chauncey

Total Points: 377
Total Questions: 91
Total Answers: 99

Location: Jordan
Member since Thu, Aug 5, 2021
3 Years ago
;