Disable back button in XML
Hi All,
I am new to XML.I had created one XML page ,this page had a hyper link and calls page 2,Now i wanna disable back button in browser.How can i do it..?
I had used java script function in HTML tag but it is not working..
It is really urgent..pls tell me soon...
I had used the following code
<SCRIPT LANGUAGE = "javascript" TYPE = "text/javascript">
javascript:window.history.forward(1);
Thank's in advance...
XML_Dolphin...
# 1 Re: Disable back button in XML
Rather difficult to answer given the information you have given. If the content-type is set to xml, and there is no stylesheet processing instruction, the above will never work. Because the <script> element doesn't carry any meaning in xml.
If there is a stylesheet, the stylesheet should be set to output the above script-element as is. But AFAIK some browsers (IE) have problems running javascript outputted by a stylesheet.
khp at 2007-11-10 3:28:18 >
