473,386 Members | 1,668 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,386 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 3534
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.