I have small problem out here and i guess it is quiet simple.
jsTitle function needs to sets the page title
window.parent.document.title = sTitle;
Here the poblem is that i/p parameter to jsTitle has a single quote,so how do we espace that so that ' appears in the title
One more thing is that i have many hyperlinks in the page
which can again have the single quote in the title.
Re: escape problem
replace the above with this
Originally posted by sachin
('Test Manual - What's New in This Guide');
('\'Test Manual - What\'s New in This Guide\'')
cripes forum editor screwed it up...lol
Last edited by khalidali63; 05-30-2003 at 07:04 PM.
That might work, but only because the browser you are using is ignoring the error. But MSIE hasn't taken over yet. That should be:
Originally posted by Dave Clark
This will work:
onclick="jsTitle('Test Manual - What\\'s New in This Guide');"
i did not get you.
can pl let me know in detail.
also why there is a space b/w java & script.
this is surely not work.
onclick="java script:jsTitle('Test Manual - What\'s New in This Guide');"
We've had this argument before and yes, my only argument is that it is wrong. Yes it works on most browsers that I know about and it certainly works on most browsers out there, but it's still wrong.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)