Link to home
Start Free TrialLog in
Avatar of Loganathan Natarajan
Loganathan NatarajanFlag for India

asked on

Can we catch the browser (IE) history count?

I am handling some frame based application.. where I can count / length the history details... I just want to alert/fire some message when the history raising from 10 to 11 th page..?

Probably I will be moving the pages..so i have the history details on my browser .. also i could get the history length ...

Is it possible to catch the history  and display some alert message ??

So How to catch the 11th history...? moving from 10th count/length
ASKER CERTIFIED SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Loganathan Natarajan

ASKER

You are right mplungjan. But my issue is, I am handling page navigation with iframe. I am adding attribute to iframe like

frame1.Attributes.Add("onload", "javascript:alert(history.length);");

This executes only after the page is loaded completely. But Browser increments the history length well in advance. How to do that in my iframe page?

The real issue, if my page have more images, the above javascript is getting executed after all the images are loaded. But the browser is incrementing the history length before that. How?
If you are handling it, count where you handle it.
What is the actual issue here. What are you trying to achieve?

Michel
when the history.length is being updated, i am able to get the length only after <iframe loaded completed ... Is it possible to get it before (i.e when the iframe page loads ...itself...

any idea?

(On the main page, I am loading the iframe and doing this work... trying to load different iframes on the main page...
any other comments?
No. Sorry. I do not understand your issue.
If you have full control over what you load, then I do not see a need to look at the history object
Now, I have set it as Timer ... it is ok now... ok.. i will close this topic .. i got something to do.,