Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Getting Error "Setting a property that has only a getter" in java script while opening in firefox

JavaScript
function OpenModalWindow(url,name){
    if(name===undefined){
        window.open(url,"_blank","status=0,toolbar=0,menubar=0,resizable=1,scrollbars=1");
    }
    else{
        window.open(url,name,"status=0,toolbar=0,menubar=0,resizable=1,scrollbars=1");
    }
    return false;
}
Posted
Updated 11-Oct-15 7:24am
v3
Comments
[no name] 11-Oct-15 11:25am    
In your current code, it doesn't have error. May be other javascript code which is executed and throwing error.
Afzaal Ahmad Zeeshan 11-Oct-15 11:40am    
You do not have a setter for that object. So that is why when you try to add a value, it won't work.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900