Jump to content

Modal window


sridhar

Recommended Posts

Hi All,i need some details about the modal window.This is my code. plz guide me the correct way. its not supporting in IE but it running well in Firebox.function MM_openBrWindow(theURL,winName,features) { // if(navigator.appName=="Microsoft Internet Explorer"){ window.showModalDialog(theURL,winName,features); }else{ window.open(theURL,winName,features) } } what ill do to run the both browser.regardsSridhar.J :)

Link to comment
Share on other sites

According to this page - http://msdn.microsoft.com/workshop/author/...modaldialog.asp - that second parameter in the showModalDialog method is looking for "arguments to use when displaying the document" rather than the window name (as in the open method).You might simply try this instead:

window.showModalDialog(theURL,"",features);

Also notice that the window features are "semicolon-delimited" values rather than comma-delimited and that the feature names are different.Compare the features listed on that page (above) to the features expected by the window.open() function:http://www.w3schools.com/htmldom/met_win_open.asp

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...