473,701 Members | 2,732 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

107 New Member
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.histo ry.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 3552
16,027 Recognized Expert Moderator MVP
This information won't be available to you unless you have the required permissions, e.g. with history.next or history.previou s you will get a permission denied error. Why exactly do you need this info. anyway?
Jun 18 '09 #2
107 New Member
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
5,390 Recognized Expert Moderator Expert
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

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 ?
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 'next' link at the bottom of the page and when I click on that, the next 20 results are shown on screen and so on. When I click the 'view all' link, the view .asp page opens the data.xml and view.xsl pages but the xsl page isn't outputing the results....
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 { }
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 the can just redisplay a grid by pushing a button. Also, they could push a button (or many buttons) many times (say 15 times) and if they want to go the the previous page (the one that got them there), they need to hit the back button 16 times...
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
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 goes through the hole history of postbacks if she wants to get to previous page. Thank you, Shimon
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
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 am using a master page senerio. The erro I'm getting is 'busyBox' is not a member of 'ASP.login2_aspx'
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 these be kept when returning? I'm very grateful for fast response. // S
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
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...
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...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.