How to disable new window / tab opening in a firefox plugin

ಈಗ, ನಿಮ್ಮದೇ ಒಂದು ಪ್ಲಗಿನ್ ಇದೆ ಅಂತಿಟ್ಕೊಳ್ಳಿ. ಈ ಪ್ಲಗಿನ್ ಓಡುವಾಗ ನಿಮ್ಮ ಫೈರ್ಫಾಕ್ಸ್ ಹೊಸ ವಿಂಡೋ / ಹೊಸ ಟ್ಯಾಬ್ ತೆರೆಯುವುದನ್ನು ನೀವು ನಿಷೇಧಿಸಬೇಕಿದ್ದರೆ..ಈ ಕಮಾಂಡ್ ಬಳಸಿ.

document.getElementById(“cmd_newNavigator”).setAttribute(“disabled”, true);

document.getElementById(“cmd_newNavigatorTab”).setAttribute(“disabled”, true);

This will not only disable the menus but also disables the keyboard shortcuts, Ctrl + N, Ctrl + T.

This entry was posted in Uncategorized and tagged , , . Bookmark the permalink.

ನಿಮ್ಮದೊಂದು ಉತ್ತರ

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s