473,804 Members | 2,946 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

history.go("URL ") doesnt work

Hi you out there.

I use the following string to go back to a page that's in the history.
<A HREF="javascrip t:history.go('d osearch=0')">

But nothing happens. Using the complete URL makes no difference :-(

Suggestions?

THX, Harry
Jul 20 '05 #1
6 27770
On Mon, 16 Feb 2004 13:30:00 +0100, wrote:
I use the following string to go back to a page that's in the history.
<A HREF="javascrip t:history.go('d osearch=0')">


The method, History.go(), expects an integer, not a string.

On a different matter, read:

http://www.jibbering.com/faq/#FAQ4_24

Mike

--
Michael Winter
M.******@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 20 '05 #2
"Harald Weiser" <hawe@domea[remove].com> wrote in message news:<c0******* ***@paperboy.Au stria.EU.net>.. .
Hi you out there.

I use the following string to go back to a page that's in the history.
<A HREF="javascrip t:history.go('d osearch=0')">

But nothing happens. Using the complete URL makes no difference :-(

Suggestions?

THX, Harry

Try this:

<a href="javascrip t:history.go(-1)"> return to previous page</a>

HTH
Jul 20 '05 #3

"rgee_f" <ne********@jet able.org> schrieb im Newsbeitrag
news:bc******** *************** ***@posting.goo gle.com...
Try this:

<a href="javascrip t:history.go(-1)"> return to previous page</a>

HTH


I know this one, but then I would have to remember how many pages a called
since then... And I read that with go you can give a location as
parameter...

Harry
Jul 20 '05 #4
Harald Weiser wrote on 17 feb 2004 in comp.lang.javas cript:

"rgee_f" <ne********@jet able.org> schrieb im Newsbeitrag
news:bc******** *************** ***@posting.goo gle.com...
Try this:

<a href="javascrip t:history.go(-1)"> return to previous page</a>

HTH


I know this one, but then I would have to remember how many pages a
called since then... And I read that with go you can give a location
as parameter...


No,

use this:

<a href="javascrip t:location.href =URL">
return to specified previous page</a>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #5
Harald Weiser wrote:

I know this one, but then I would have to remember how many pages a called
since then... And I read that with go you can give a location as
parameter...


My refrerence says the same thing (JavaScript Bible by Danny Goodman):

go(relativeNumb er | "URLOrTitleSubs tring")

Which tells me that _some_ browsers will support a URL or Title
substring, IF AND ONLY IF the value exists in the history already.

The IE reference says the following about the parameter:

"[The parameter] specifies an integer or a string. An integer indicates
the relative position of a URL in the History list. A string indicates
an exact URL in the History list."

This is different than saying
[document|window].location.href= "newPlace", because it effects the
history differently.

Still, the value must exist in the history (not the cache), meaning you
must be able to navigate to it via forward and back. Note that there is
some security in the history model... you cannot see what is in it... to
avoid prying eyes from watching your every move :)

Brian

Jul 20 '05 #6
Evertjan. wrote:
Harald Weiser wrote on 17 feb 2004 in comp.lang.javas cript:

"rgee_f" <ne********@jet able.org> schrieb im Newsbeitrag
news:bc****** *************** *****@posting.g oogle.com...
Try this:

<a href="javascrip t:history.go(-1)"> return to previous page</a>

HTH


I know this one, but then I would have to remember how many pages a
called since then... And I read that with go you can give a location
as parameter...

No,

use this:

<a href="javascrip t:location.href =URL">
return to specified previous page</a>


<a href="howToUseT heBackButton.ht ml" onclick="locati on.href=URL">
return to specified previous page</a>

--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/

Jul 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1658
by: Karl | last post by:
I work for a software company that's looking to get into .NET. I've dabbled with the technology for a bit, and had some positive resutls. My boss is asking me that he wants to buy a framework that delivers a lot of the common functionality that .NET developers need. Things like generating DataSets to call against databases, generating code for Windows and Web Forms, deploying the applications and so on. He's nervous that we're going...
6
39154
by: Dave | last post by:
I have a stored procedure in sql 2000 that requires steps to be fully completed before moving to the next command in the procedure. I have tried to place the word "GO" after each statement. When I create the procedure then take a look at it through em, it only shows the code up until the word "GO". Example: CREATE PROCEDURE mytest as create table mytable col1 varchar(5), col2 varchar(10)
7
2485
by: Richard | last post by:
How do I prevent a submit action from occurring if the select box has no value. The box is for a database search where the user must enter a keyword. Leaving the box empty triggers a blanket search of the database and uses lots of processing time and gives too many results. Is there something I can add to the submit button to trap an empty select box and trigger a warning that something must be entered? <input type=hidden name="action"...
17
2009
by: Will Hartung | last post by:
I have a table for a report. It can get wide, but that's no big deal. I don't mind that it can get wide. What I do mind, though, is the browser doing its damndest to smash the thing down to get it to fit the window (to no avail). It crams it down until it can't cram any more and then pops up the horizaontal scroll bar, rather than just "let go", and set the table free, scrollbar be damned. Is there a way to tell the browser that my...
0
1730
by: Andrew Morton | last post by:
Windows Server 2003 SP1, IIS6.0, .NET1.1, VS2003 I got the "URL Is In the Internet Zone" error when trying to debug an ASP.NET application, with 403.0 followed by 401.5 errors in the IIS log. I have several web sites set up on my computer, to get debugging to work I had to allow ASP.NET debugging for "Web Sites", not just the site I was trying to debug in, and allow it to set it on all sites. (Right-click Web Sites, choose...
7
5344
by: Gabriella | last post by:
Hi, I would like to know how to find out which is the browser's "home" URL? This is so I'll be able to suggest "set as homepage" for my website, only for those who did not set it beforehand. I know there's a security issue with this, but is there some workaround it? Thanks,
7
1556
by: Scott McNair | last post by:
Hi, I'm trying to set an environment variable programmatically. I've added these three lines to my code: System.Environment.SetEnvironmentVariable("TCS", "C:\Program Files\TCS\") InstallPath = System.Environment.GetEnvironmentVariable("TCS") MsgBox(InstallPath) And, as expected, the MsgBox contains "C:\Program Files\TCS\".
7
1862
by: Joe | last post by:
usually slide bars move by "jumps" while scrolling which looks not nice. I came accress slide bar with price menu, ewnt through script/web source code, and could not find anything that would case that wanted effect :) here you go: http://www.shopping.hp.com/webapp/shopping/computer_can_series.do?storeName=computer_store&category=notebooks&a1=Display&v1=20.1&series_name=HDX_series&a1=Display&v1=20.1 click on the left >Recommended config...
3
2323
by: Willy | last post by:
I have a website that uses querystrings on a certain page to show multiple contents. I have created mapped pages to hide the gory details of these querystrings. So instead of details.aspx?ID=kldjlkdjldsjlkds&cat=jjfjfj the client sees products.aspx I also use these "mapped" pages in my sitemap file. This site is multilingual so I have buttons on the page to switch languages.
0
9704
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10318
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10069
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7608
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5505
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4277
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2976
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.