sachin
05-30-2003, 05:02 PM
Hi,
I have small problem out here and i guess it is quiet simple.
<a id="e2" href="/test/09111/520/123.pdf" target="fmContent" class="udrlinesmall" name="Table of Contents" onclick="javascript:jsTitle('Test Manual - What's New in This Guide');">
jsTitle function needs to sets the page title
<script>
function jsTitle(sTitle)
{
window.parent.document.title = sTitle;
}
</script>
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
as well as it should not give javascript error.
One more thing is that i have many hyperlinks in the page
which can again have the single quote in the title.
I have small problem out here and i guess it is quiet simple.
<a id="e2" href="/test/09111/520/123.pdf" target="fmContent" class="udrlinesmall" name="Table of Contents" onclick="javascript:jsTitle('Test Manual - What's New in This Guide');">
jsTitle function needs to sets the page title
<script>
function jsTitle(sTitle)
{
window.parent.document.title = sTitle;
}
</script>
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
as well as it should not give javascript error.
One more thing is that i have many hyperlinks in the page
which can again have the single quote in the title.