Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Contributor
Posts: 3
Registered: ‎03-29-2011
My Device: Bold 9780
My Carrier: Rogers

Javascript in Blackberry 6 Browser

[ Edited ]

Hello everyone,

 

 I am currently new to development for the blackberry and I have a problem. I am currently developing lotus notes for the blackberry and using JavaScript on the web side of the form. I am looking for a way to close the browser application using: window.close(); , self.close(); , parent.close(); , System.exit(1);

 

window.close(); does nothing. According to the API it suppose to close the current page and bring the user to the previous page that is in history.

 

If I can get that working then my next question would be how would I clear the browser history through JavaScript.

 

Any ideas, All the help is greatly appreciated

 

Also, i was thinking about the closing the session of the blackberry. Would anyone have any idea how to do that

Developer
Posts: 189
Registered: ‎08-13-2008
My Device: Not Specified

Re: Javascript in Blackberry 6 Browser

Hello

 

I checked this out a while ago, but from what I can rememeber you can only use window.close, if you opened the window using javscript. I believe its related to security.

 

Not sure if that will help you though!

 

Cheers

 

Andrew