2011-06-03 71 views
0

假設我有outerpage.html保存頁/打印頁按鈕的頁面IFRAME SRC被鏈接到

<html> 
<head> 
</head> 
<body> 
    <input type="button" id="printPage" name="printPage" /> 
    <input type="button" id="savePage" name="savePage" /> 
    <iframe src="someOtherPage.html"></iframe> 
</body> 
</html> 

如何使用Javascript功能來保存和打印someOtherPage.html被點擊相應的按鈕時?

回答