473,399 Members | 2,858 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,399 software developers and data experts.

findout that this page has previous page or next page in history object

oranoos3000
107 100+
hi
i'm a beginer javascript
would you please help me
i d like to findout this page has next page or previous page in history object
i use this line of code
if(window.history.length>0)
and with this line code indentify that exist else page that visited via this page
but i want to findout this pages is previous page or nextpage?
thanks very much for your help
Jun 17 '09 #1
3 3537
acoder
16,027 Expert Mod 8TB
This information won't be available to you unless you have the required permissions, e.g. with history.next or history.previous you will get a permission denied error. Why exactly do you need this info. anyway?
Jun 18 '09 #2
oranoos3000
107 100+
hi
i d like to put two pictures on page in stead of back button and forward button
for go to back page visited and go to forward visited
and i d like to identify wether exist forward page or back page visited

and another my question is :
do i remove toolbal from page where user visited (toolbar from window of browser user)
thanks very much for all your trouble
Jun 20 '09 #3
gits
5,390 Expert Mod 4TB
when you open a new window you might open it without the toolbar ... but you cannot/and shouldn't try to do that with the 'base' browser-window ... it is one of the most annoying things with webapps that try to change the users browsersettings like toolbars, size etc. .... the user has his own preferences and a webpage/-app shouldn't try to change that settings ...

that even goes for the typical browser behaviour ... why not use the provided functionality? ... buttons, address-bar etc. are there for a reason so just let the user work with them as he knows how to use it. providing custom interfaces for 'settled' behaviour of software and thinking of users is often bad practice and design ... so i would like to recommend to avoid such attempts ... but in case you really need to provide your own navigation buttons and so on ... then you need to open a new window with the window.open() method ...

kind regards
Jun 20 '09 #4

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

Similar topics

3
by: riotctrl | last post by:
Is there a way to use the history.back to display the actual url of the last page to the page ?
0
by: thomas | last post by:
Hi all, I was wandering is anyone can help. When I click on the 'view all' link on my homepage http://www.guitarmidi.co.uk I woild like to output the first 20 results on screen then have a...
10
by: pmelanso | last post by:
Hello, How can I tell if there is a page to go back to in the history or not??? Same with forward??? say something like/// if (there is a page to go back to ) { // DO something }else { }
2
by: tshad | last post by:
I want to be able allow our users to push buttons to show and hide hidden grids on my page. The problem is that each one of these pages gets put into the history. There is no need to go back, as...
2
by: wiewiek | last post by:
Is there a way to go back to the previous page when a button (Cancel button) is hot? It's an ASP control. Thanks
3
by: Shimon Sim | last post by:
Hi Is it possible to make sure that the page doesn't show in browser history and won't effect Back button. The problem is that every postback shows as another entry for "Back" button and user...
2
by: pcouas | last post by:
Hi, I search an parameter to view previous and next button into IE7 and not url ? Could i add an parameter to window.open Regards Philippe
4
by: Ty | last post by:
Hello all, I am creating a web site with Visual Stuido 2008. I am trying to use a java script file to create a busybox for login from this page http://blogs.crsw.com/mark/articles/642.aspx. I...
13
by: staeri | last post by:
I use javascript:history.go(-1) to return to the previous page. I've now found out that when returning to the previous page all selections that the user made in dropdownlists are lost. How can...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
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...

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.