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; }
Popularity: 4% [?]

March 17th, 2009
admin
Posted in
Tags: 
