Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: prompt()


Message #1 by "Mari-Jane Garling" <mjgarling@f...> on Tue, 04 Jun 2002 17:15:21 -0700
In case anyone wants to know:  This is a bug in Microsoft Internet 
Explorer 5.1 for Mac OS X. It only
affects those using version 10.1 or higher of Mac OS X.

One workaround is to drag the Script Prompt window off the screen (below
the Dock or to the side) so that most of the window is not visible. When
you drag it back, you should see the text.

> I have a ASP page w/ the followoing JavaScript:

function promptUser()
{
 n = window.prompt("Message to the user", "");
 some more code;
}

called from the following line:

<a href="javascript: promptUser()">My Link</a>

When viewed in IE 5.5 on Mac OS X - the prompt user dialog appears w/
the ! icon but no message.

Has anyone else encountered this and do you know how to fix this code to
get it to display the message to the user?

This has been tested w/ Netscape on Mac OS X and 9 and it functions
properly.  Also, it functions properly on PC w/ IE and Netscape.

Thanks


  Return to Index