mkohan Posted October 21, 2008 Share Posted October 21, 2008 Hi How could I solve the special characters on window.open URL? I want to open a document file 'document #2.doc' with onClick : <a href="#" onClick="javascript:window.open('/documents/documnet #2.doc', '2', 'height=600, width=850,menubar=1,scrollbars=1,resizable=1');"> I get "file not find" error. Thanks, MK Quote Link to comment https://forums.phpfreaks.com/topic/129455-special-characters-in-windowopen-url/ Share on other sites More sharing options...
cuboidgraphix Posted October 22, 2008 Share Posted October 22, 2008 I think you might need to rename your file 'document #2.doc' to 'document_#2.doc' and <a href> it to.. <a href="#" onClick="javascript:window.open('/documents/documnet_#2.doc', '2', 'height=600, width=850,menubar=1,scrollbars=1,resizable=1');"> Quote Link to comment https://forums.phpfreaks.com/topic/129455-special-characters-in-windowopen-url/#findComment-671975 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.