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

clipboard stuff

Status
Not open for further replies.

infinitelo

Programmer
Mar 7, 2001
319
Im working on a wierd project, what i need is a way to copy the contents(text) of an html page and paste them into another aplication.
 
I have the same problem.
I know this is possible in JavaScript with one line of code:

vSheetContent = document.all.tabContent(0).outerHTML
window.clipboardData.setData("text", vSheetContent)

Surely there is something similar in VBScript - it's such a basic need but it seems you need an object which supports the Copy method....
I'm about to give up on this and stick to JavaScript
 
thanks for the reply, since you can have both script languages in the same page it doesnt matter witch one i use.
 
infinitelo - you need to provide more information on your environment. Is this in an HTA, the WSH, client/server ASP, or what. There are other threads here that discuss clipboard manipulation - do a keyword search.

Karpov - per your post, you are using the Browser's OM to perform your copy/paste. So whether you are using JS or VBS is absolutely irrelevant - provide the browser supports it. Jon Hawkins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top