Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Capture source code to open same page in new window

Status
Not open for further replies.

cranebill

IS-IT--Management
Jan 4, 2002
1,113
US
My html is generated via php and populated via a lengthy sql query. I want to be able to open current page in a new window. Is there a way to have a button to capture the source code of the current page and open a new window...
 
You'll have to use a combination of HTML and JavaScript for this... but to be honest, your best bet is to have the same PHP write the same information out again to a popup, rather than trying to capture everything client-side.

Hope this helps,
Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top