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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save as dialog box

Status
Not open for further replies.

gust1480

Programmer
Mar 19, 2002
148
PH
How do I show the save as dialog box instantly when my page is loaded?? Is it possible to determine when my page was loaded completely?
 
Hi,

Not sure you can open a &quot;save as&quot; dialog box in javaScript. Assuming you can, the 'onload' event on the <body> tag only fires once the page is completely loaded.

<body onload=&quot;functionAfterPageLoads()&quot;>

Cheers,

Richard
(Johannesburg, South Africa)
 
Hi, give this a go:
<body onLoad=&quot;document.execCommand('SaveAs',false,'c:\\testfolder\\test.htm');&quot;>

Obviously, you can specify the folder name and a file name or leave it blank, or just leave the filename blank, or whatever. Hope I helped / Thanks for helping
if ((Math.abs(x)<10&&Math.abs(y)<10) && (((parseInt(Math.abs(x).toString()+Math.abs(y).toString())-Math.abs(x)-Math.abs(y))%9)!=0)) {alert(&quot;I'm a monkey's uncle&quot;);}
 
Guys, thaks for the response. I have another question. Can i determine whether the user clicked cancel or save in the save as dialog box??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top