473,394 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Back link

347 100+
I have a page that has an iframe in it that plays mp3 clips with the click of a link in the outer page, the problem is that if i put a javascript: history.go(-1) link on the button it does not go back to the previous page it just steps back i have a variable that keeps track of the number of links to play files is clicked but cannot work out how to include this in the javascript: history.go(-1) link
the variable is called clicks and i have tried various versions of the following javascript: history.go(-"clicks") but cannot work it out....please help, thanks
May 23 '08 #1
3 1251
hsriat
1,654 Expert 1GB
Try history.go(((-1)*clicks))
May 23 '08 #2
colinod
347 100+
PERFECT thankyou works fantastic
May 23 '08 #3
hsriat
1,654 Expert 1GB
PERFECT thankyou works fantastic
You are welcome...

When you include a variable name in quotes, its considered as string, not the variable name.
And to make a variable -ve, you have to multiply the variable with -1. Prefixing a -ve sign won't work.

Regards
May 23 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Rich | last post by:
Am just beginning to use javascript. I have some pages that can be arrived at from more than one other page. Yes, the user can use the back button but I'd like to have a back link at the bottom...
3
by: woodsie | last post by:
i'm looking for a back script that will work in Safari (on mac). the one below works fine in IE and netscape but not safari. <a href="#" onClick="history.go(-1)">go back</a> any help plz?
1
by: Lloyd Dupont | last post by:
I'm trying to create a 'back' link basically it's displayed only on the 'login' page, where (to test) I've put all the asp:login, asp:loginview, asp:CreateUserWizard, etc.. control. in my Back...
2
by: Liming | last post by:
Hi, I have a multiview (with 10 views inside). Now on View2, I ask the user to uplaod a file and click Save to go to View3 and once they get to view3? If the user hits my "previous" button,...
2
by: Bruno | last post by:
Hi ... I have a webpage popup (lets call it POPUP) which refreshes the opener window (this one we call PARENT) when we close it, saying we want to save data. For this, we use ...
2
by: emorgoch | last post by:
Hi there, I'm trying to figure out how to create myself a "Back" link in a ASP.NET 2.0 application that will handle my cases. What I have is a page that has multiple pages that it can be entered...
11
by: prophet | last post by:
Here is a simple on that I need help with..... I need to create a link "back" that when you click it, it returns you back to the previous page that you were at. I am not looking for button...
5
by: =?Utf-8?B?QW1pciBUb2hpZGk=?= | last post by:
Hi I have a search page which display a grid of master records. Those records that have children have a hyperlink that takes the user to the Details page for that record. How can I implement...
3
by: Karl | last post by:
Hello. I have a php/mysql page were I receive to many hit. I want to show 10 hit after a search and links at bottom were you can click and get the 10 next hit. Thanks for all advice and links...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.