We can view a page source normally from the menu view->source in mozilla or ie.But how would we view a page source of a showmodal page.
we can achieve it by the following code.
function viewSource()
{
d=window.open();
d.document.open('text/plain').write(document.documentElement.outerHTML);
return false;
}
0 comments:
Post a Comment