Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Ipad2 Safari onChange not opening a new window.

I have a problem opening a new window when an onChange is executed from a drop down menu. The javascript function is successfully being called. However the open window in the javascript function is not being executed. There is no problem opening the new window on a desk top computer running Safari. Also when I use the alert command to display the open window variable on the IPAD2 it returns 'undefined' on the desktop computer 'object' is returned. Any and all help is very much appreciated.

Thanks in advance

Leonard

iPad 2, iOS 4.3.3

Posted on Aug 2, 2011 9:06 AM

Reply
2 replies

Aug 3, 2011 6:06 PM in response to lawood39

Below is a small html program does not work on the Ipad 2. A javascript alert(myWin) still displays as "undefined". If I change the onChange to a onClick even though I am not able to select a week the window.open works just fine.


<html>

<head>

<title>Test onChange</title>

</head>

<script language='JavaScript' type='text/JavaScript'>

<!--

function doWeek()

{

var myWin = window.open('http://www.google.com', 'displayWindow', ' ', ' ');

}

//-->

</script>

<select name='doTest' onChange='doWeek()'>

<option value='0' selected>Select Week</option>

<option value='1'>Week 1</option>

<option value='2'>Week 2<.option>

</select>

</body>

</html>

Ipad2 Safari onChange not opening a new window.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.