function cancelBack()
{
alert(event.keyCode);
if (event.keyCode == 8 && event.srcElement.form == null)
{
event.cancelBubble = true;
event.returnValue = false;
}
}
<body onkeydown = "cancelBack();">
try this . i think this might help you
On Fri, Dec 26, 2008 at 11:54 AM, kiran raj <[email protected]> wrote:
> http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_22863431.html
> here is a link which i got during the search . just try this out i
> hope this will help you out . as i am not able to open this site im
> not sure how much it can help you.
>
> On Fri, Dec 26, 2008 at 11:07 AM, Charan <[email protected]> wrote:
>>
>> Hi Kiran Raj,
>> Thanks for your replies.
>> I found one variable of javascript which is using by GWT to store the
>> token ($wnd.__gwt_historyToken) ,
>> but i didn't which javascript array variable holding this, when we
>> know we can clear that array will acheive out goal.
>> can i know which way you are tried to solve this issue thru
>> javascript , may be that will help to think more in different way to
>> solve my issue
>>
>> Thanks
>> -Charan
>>
>>
>> On Dec 26, 9:25 am, "kiran raj" <[email protected]> wrote:
>>> as javascript is a client side scripting the main thing which is
>>> considered here is the browsers used. so keeping this in mind you can
>>> create a code which might even help us to get . i tried to create one
>>> but it failed as well.
>>>
>>> On Wed, Dec 24, 2008 at 8:28 PM, Charan <[email protected]> wrote:
>>>
>>> > Any help is appreciated hack to javascript variable thru JSNI
>>>
>>> > -Charan
>>>
>>> > On Dec 24, 2:24 pm, "kiran raj" <[email protected]> wrote:
>>> >> sorry then i think its not possible to do so.
>>>
>>> >> On Wed, Dec 24, 2008 at 2:44 PM, Charan <[email protected]> wrote:
>>>
>>> >> > I don't think such method in History class
>>>
>>> >> > =Charan
>>>
>>> >> > On Dec 24, 12:59 pm, "kiran raj" <[email protected]> wrote:
>>> >> >> did you try history.clear();
>>>
>>> >> >> On Wed, Dec 24, 2008 at 12:45 PM, Charan <[email protected]> wrote:
>>>
>>> >> >> > Hi,
>>>
>>> >> >> > After a long time after giving a message with similar question in
>>> >> >> > diffferent way to acheive
>>>
>>> >> >> > Is there any way to delete tokens which are added to HIstory using
>>> >> >> > History.newItem(), now i need to delete some tokens which i don't
>>> >> >> > need
>>>
>>> >> >> > can you give me any suggestion to acheive this, by overding
>>> >> >> > javascript , or JSON any suggestion will do
>>>
>>> >> >> > Thanks & regards
>>> >> >> > Charan
>>>
>>> >> >> > On Oct 30, 5:11 pm, "Ian Bambury" <[email protected]> wrote:
>>> >> >> >> OK,
>>> >> >> >> Well, that might indicate that you should redesign slightly so
>>> >> >> >> that you only
>>> >> >> >> set it once :-) Re-initialising a number of times would suggest
>>> >> >> >> that there
>>> >> >> >> is a better design somewhere - not always possible or practicable,
>>> >> >> >> I know if
>>> >> >> >> you have an existing system.
>>>
>>> >> >> >> Or maybe you could save the token somewhere and only write it out
>>> >> >> >> when the
>>> >> >> >> page is set up.
>>>
>>> >> >> >> *But*... if you write *exactly* the same token multiple times one
>>> >> >> >> after the
>>> >> >> >> other, you should only get one history entry
>>>
>>> >> >> >> Ian
>>>
>>> >> >> >>http://examples.roughian.com
>>>
>>> >> >> >> 2008/10/30 Charan <[email protected]>
>>>
>>> >> >> >> > hi Ian,
>>> >> >> >> > Thanks for your quick reply.
>>> >> >> >> > Actually what i need is i am storing the History tokens using
>>> >> >> >> > newItem(token) ,sometimes i am re intializing some part of code
>>> >> >> >> > several times where i am adding same token multiple times.
>>> >> >> >> > when i go back to that page it is having four tokens with the
>>> >> >> >> > same
>>> >> >> >> > which i don't want.
>>>
>>> >> >> >> > On Oct 30, 4:33 pm, "Ian Bambury" <[email protected]> wrote:
>>> >> >> >> > > History is a function of the browser.
>>> >> >> >> > > If you could clear the history, you could stop people going
>>> >> >> >> > > back to the
>>> >> >> >> > page
>>> >> >> >> > > they came from.
>>>
>>> >> >> >> > > Browsers tend to view this as not desirable.
>>>
>>> >> >> >> > > Ian
>>>
>>> >> >> >> > >http://examples.roughian.com
>>>
>>> >> >> >> > > 2008/10/30 Charan <[email protected]>
>>>
>>> >> >> >> > > > How to clear the tokens in History class , i didn't find any
>>> >> >> >> > > > removeToken/tokens methods in History class
>>>
>>> >> >> >> > > > can i know is there is any way to clear tokens in history
>> >>
>>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---