Copy and Paste Java
Infopackets Reader 'Annie' writes:
" Dear Dennis,
I'd like to know how to copy and paste something into HTML but don't know how to do it. I am trying to save an animated 'Java' clock I saw on a web site into another HTML document, but I just can't seem to get it to go. Can you please help me? I don't really know a lot about computer languages. Thanks. "
My response:
It sounds like you're trying to copy and paste Java code through the browser; regrettably, it's not as simple as this, as Java is a transparent feature of the web browser.
If you want to copy and paste Java that is present on a web site, you will need to view the source of the page (View -> Source in Internet Explorer). Unfortunately, you must have a little bit of programming knowledge in order to know what to look for when it comes to extracting code. Hint: some Java HTML tags begin with "<script language="javascript">". The ending tags have a forward slash in them (</script>) which denote the end of the script.
Infopackets Reader Kenneth K. wrote in shortly after this article was sent out to our Readers:
" Dennis, I just finished reading your latest article. I have some additional comments to make. First of all, copying and pasting Java may not be as simple as you suggest. If the Java Clock Annie is referring to is an 'applet', it may not be copy-able as some applet elements invoke an external file at compile time.
On the other hand, if the Java code is 'client side JavaScript', and the JavaScript is 'internal' (I.E.: the JavaScript source code is completely embedded in the HTML source code instead of being in a separate file "external" file), it may be possible to copy part of the HTML source code as you suggest. Also, keep in mind that some source code is copyright, even if it is distributed via the web. "
RE: Extracting Java Code
One approach to extracting Java from a web site is to click View -> Source (using Internet Explorer), and paste it all the contents into a designated text editor that provides you with HTML color-coded markup. Some editors can even identify scripts embedded in HTML code; in fact, my absolute favorite text editor (EditPad Pro, $39.95 by JG Soft, free trial) can separate / color code Java Script from HTML without any problems. It's also great for programming scripts because it identifies syntax statements, making it easier to program.
Alternative Solutions from Infopackets Readers?
If you know of a freeware text editor capable of color coding (and separating) HTML code from Java, feel free to email me your solution.
Most popular articles
- Which Processor is Better: Intel or AMD? - Explained
- How to Prevent Ransomware in 2018 - 10 Steps
- 5 Best Anti Ransomware Software Free
- How to Fix: Computer / Network Infected with Ransomware (10 Steps)
- How to Fix: Your Computer is Infected, Call This Number (Scam)
- Scammed by Informatico Experts? Here's What to Do
- Scammed by Smart PC Experts? Here's What to Do
- Scammed by Right PC Experts? Here's What to Do
- Scammed by PC / Web Network Experts? Here's What to Do
- How to Fix: Windows Update Won't Update
- Explained: Do I need a VPN? Are VPNs Safe for Online Banking?
- Explained: VPN vs Proxy; What's the Difference?
- Explained: Difference Between VPN Server and VPN (Service)
- Forgot Password? How to: Reset Any Password: Windows Vista, 7, 8, 10
- How to: Use a Firewall to Block Full Screen Ads on Android
- Explained: Absolute Best way to Limit Data on Android
- Explained: Difference Between Dark Web, Deep Net, Darknet and More
- Explained: If I Reset Windows 10 will it Remove Malware?
My name is Dennis Faas and I am a senior systems administrator and IT technical analyst specializing in cyber crimes (sextortion / blackmail / tech support scams) with over 30 years experience; I also run this website! If you need technical assistance , I can help. Click here to email me now; optionally, you can review my resume here. You can also read how I can fix your computer over the Internet (also includes user reviews).
We are BBB Accredited
We are BBB accredited (A+ rating), celebrating 21 years of excellence! Click to view our rating on the BBB.