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

Java Development

Reply
New Contributor
Posts: 2
Registered: ‎07-25-2013
My Device: Bold 9900
My Carrier: AT&T
Accepted Solution

Javascript is not working in OS 7

I have an application that uses java script to close the active window.

       

<scriptlanguage="javascript"type="text/javascript">

   

function my_onload() {

window.open('', '_self', '');window.close();

}

</

script>

 

This script works great on Internet explorer and also on the Blackberry 9700, but when I use it on a blackberry Bold 9900 OS7 the page stays open. It does not appear to see the script. Any suggestions on how to fix this would be greatly appreciated.

 

John

Developer
Posts: 19,623
Registered: ‎07-14-2008
My Device: Not Specified

Re: Javascript is not working in OS 7

Is this the right forum?

 

I think this one might be more appropriate for your question.

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/bd-p/browser_dev