Oval Tube Weight Calculator

Oval Tube Weight Calculator | Professional Metal Weight Estimation :root { –primary: #004a99; –primary-dark: #003366; –secondary: #f8f9fa; –text: #333; –border: #dee2e6; –success: #28a745; –error: #dc3545; –shadow: 0 4px 6px rgba(0,0,0,0.1); } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; color: var(–text); background-color: #f4f6f8; } header { background: var(–primary); color: white; padding: 2rem 1rem; text-align: center; margin-bottom: 2rem; } header h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; } header p { opacity: 0.9; font-size: 1.1rem; } main { max-width: 960px; margin: 0 auto; padding: 0 1rem; } /* Calculator Styles */ .loan-calc-container { background: white; border-radius: 8px; box-shadow: var(–shadow); padding: 2rem; margin-bottom: 3rem; border-top: 5px solid var(–primary); } .calc-grid { display: block; /* Single column enforcement */ } .input-section { margin-bottom: 2rem; } .input-group { margin-bottom: 1.5rem; position: relative; } .input-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(–primary-dark); } .input-group input, .input-group select { width: 100%; padding: 0.75rem; border: 1px solid var(–border); border-radius: 4px; font-size: 1rem; transition: border-color 0.2s; } .input-group input:focus, .input-group select:focus { outline: none; border-color: var(–primary); box-shadow: 0 0 0 3px rgba(0, 74, 153, 0.1); } .helper-text { font-size: 0.85rem; color: #666; margin-top: 0.25rem; } .error-msg { color: var(–error); font-size: 0.85rem; margin-top: 0.25rem; display: none; } .btn-group { display: flex; gap: 1rem; margin-top: 1.5rem; } button { padding: 0.75rem 1.5rem; border: none; border-radius: 4px; font-weight: 600; cursor: pointer; font-size: 1rem; transition: background 0.2s; } .btn-reset { background: #e9ecef; color: var(–text); } .btn-reset:hover { background: #dde2e6; } .btn-copy { background: var(–primary); color: white; flex: 1; } .btn-copy:hover { background: var(–primary-dark); } /* Results Section */ .results-section { background: var(–secondary); padding: 1.5rem; border-radius: 6px; margin-top: 2rem; border: 1px solid var(–border); } .main-result { text-align: center; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #ddd; } .main-result h3 { color: #666; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; } .result-value { font-size: 2.5rem; font-weight: 800; color: var(–primary); } .result-unit { font-size: 1.2rem; color: #666; font-weight: 400; } .intermediate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; } .int-item { background: white; padding: 1rem; border-radius: 4px; border: 1px solid var(–border); text-align: center; } .int-label { font-size: 0.9rem; color: #666; margin-bottom: 0.25rem; } .int-val { font-size: 1.25rem; font-weight: 700; color: var(–text); } /* Canvas & Table */ .visual-container { margin-top: 2rem; text-align: center; background: white; padding: 1rem; border: 1px solid var(–border); border-radius: 4px; } canvas { max-width: 100%; height: auto; } .data-table { width: 100%; border-collapse: collapse; margin-top: 2rem; font-size: 0.95rem; } .data-table th, .data-table td { padding: 0.75rem; border: 1px solid var(–border); text-align: left; } .data-table th { background: #f1f3f5; font-weight: 600; color: var(–primary-dark); } /* Article Styles */ .content-section { background: white; padding: 2.5rem; margin-bottom: 2rem; border-radius: 8px; box-shadow: var(–shadow); } .content-section h2 { color: var(–primary); font-size: 1.8rem; margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 2px solid #f1f3f5; } .content-section h3 { color: var(–primary-dark); font-size: 1.4rem; margin: 1.5rem 0 1rem; } .content-section p { margin-bottom: 1rem; color: #444; } .content-section ul, .content-section ol { margin-bottom: 1rem; padding-left: 1.5rem; } .content-section li { margin-bottom: 0.5rem; } .formula-box { background: #f8f9fa; padding: 1.5rem; border-left: 4px solid var(–primary); margin: 1.5rem 0; font-family: "Courier New", monospace; font-weight: 600; } .faq-item { margin-bottom: 1.5rem; } .faq-question { font-weight: 700; color: var(–primary); margin-bottom: 0.5rem; display: block; } .internal-links { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; } .internal-links li a { display: block; padding: 1rem; background: #f8f9fa; border: 1px solid var(–border); border-radius: 4px; text-decoration: none; color: var(–primary); font-weight: 600; transition: all 0.2s; } .internal-links li a:hover { background: var(–primary); color: white; transform: translateY(-2px); } footer { text-align: center; padding: 2rem; color: #666; font-size: 0.9rem; border-top: 1px solid var(–border); margin-top: 3rem; } @media (max-width: 600px) { header h1 { font-size: 1.8rem; } .loan-calc-container { padding: 1rem; } .content-section { padding: 1.5rem; } .result-value { font-size: 2rem; } }

Oval Tube Weight Calculator

Accurate weight estimation for flat-sided oval and elliptical metal tubing

Metric (mm, meters, kg) Imperial (inches, feet, lbs)
Mild Steel (7850 kg/m³) Stainless Steel (7900 kg/m³) Aluminum (2700 kg/m³) Brass (8500 kg/m³) Copper (8960 kg/m³) Titanium (4500 kg/m³) Custom Density…
The widest outer dimension of the oval.
Please enter a valid width.
The narrowest outer dimension of the oval.
Height cannot exceed Width.
Thickness of the tube wall.
Thickness is too large for these dimensions.
Total length of the tube to calculate.

Total Estimated Weight

0.00 kg
Weight per Unit Length
0.00 kg/m
Cross-Sectional Area
0.00 mm²
Total Volume
0.00 cm³

Formula used: Flat-Sided Oval (Standard). Weight = Volume × Density.

Cross-Section Profile

Parameter Value
Material Density
Outer Perimeter
Inner Perimeter
Total Pieces

What is an Oval Tube Weight Calculator?

An oval tube weight calculator is a specialized engineering tool designed to estimate the mass of metal tubing with an oval cross-section. Unlike standard round or square tubes, oval tubes—often referred to as "flat-sided ovals" or "elliptical tubes"—have a unique geometry that requires specific mathematical formulas to calculate their volume and subsequent weight accurately.

This tool is essential for engineers, fabricators, architects, and procurement specialists who need to calculate shipping costs, structural loads, or material requirements for projects involving oval tubing. Whether you are working with steel, aluminum, or stainless steel, knowing the precise weight of your materials is critical for safety and budgeting.

Common applications for oval tubes include wardrobe rails, automotive exhaust systems, furniture frames, and decorative architectural elements. The oval tube weight calculator helps eliminate guesswork by providing instant weight data based on dimensions and material density.

Oval Tube Weight Calculator Formula

To calculate the weight of an oval tube, we first determine the cross-sectional area of the material and then multiply it by the length and the material's density. The most common industrial oval shape is the Flat-Sided Oval, which consists of two semicircles connected by straight lines.

Weight = (Area_outer – Area_inner) × Length × Density

1. Calculating Cross-Sectional Area (Flat-Sided Oval)

Let A be the major dimension (Width) and B be the minor dimension (Height). Let t be the wall thickness.

  • Outer Area: Composed of a rectangle of size (A – B) × B and a full circle of diameter B.
  • Inner Dimensions: A_in = A – 2t and B_in = B – 2t.
  • Inner Area: Composed of a rectangle of size (A_in – B_in) × B_in and a full circle of diameter B_in.
  • Material Area: Area_outer – Area_inner.

Variable Definitions

Variable Meaning Metric Unit Imperial Unit
A Major Width mm inches
B Minor Height mm inches
t Wall Thickness mm inches
ρ (Rho) Material Density kg/m³ lbs/in³

Practical Examples

Example 1: Steel Wardrobe Rail

A furniture manufacturer needs to calculate the weight of a chrome-plated steel wardrobe rail.

  • Dimensions: 30mm (Height) x 15mm (Width) oval. Note: Usually width is the larger dimension, so let's say 30mm x 15mm.
  • Thickness: 1.0mm.
  • Length: 2.5 meters.
  • Material: Mild Steel (Density ~7850 kg/m³).

Using the oval tube weight calculator, the cross-sectional area is calculated, multiplied by the length to get volume, and then by density. The result would be approximately 1.65 kg per rail.

Example 2: Aluminum Structural Beam

An architectural project uses large aluminum flat-sided oval tubes for a lightweight canopy structure.

  • Dimensions: 4 inches x 2 inches.
  • Thickness: 0.125 inches.
  • Length: 10 feet.
  • Material: Aluminum 6061 (Density ~0.0975 lbs/in³).

The calculator determines the volume of aluminum used and applies the density factor. The estimated weight for this beam would be approximately 11.5 lbs.

How to Use This Oval Tube Weight Calculator

  1. Select Unit System: Choose between Metric (mm, kg) or Imperial (inches, lbs) based on your technical drawings.
  2. Choose Material: Select the metal type (Steel, Stainless, Aluminum, etc.). The density will update automatically. If you have a specific alloy, select "Custom" and enter the density manually.
  3. Enter Dimensions: Input the Width (A), Height (B), and Wall Thickness (t). Ensure the Width is the larger dimension.
  4. Enter Length: Input the total length of the tube.
  5. Review Results: The calculator updates in real-time, showing the total weight, weight per meter/foot, and cross-sectional area.
  6. Copy or Reset: Use the "Copy Results" button to save the data for your records or "Reset" to start over.

Key Factors That Affect Oval Tube Weight

When using an oval tube weight calculator, consider these factors that can influence the final weight:

  • Manufacturing Tolerances: Tubes are produced within specific tolerances. A slightly thicker wall (within tolerance) can increase weight by 5-10% over a large batch.
  • Corner Radius: While our formula assumes a perfect flat-sided oval (semicircles + straight lines), some tubes have slightly different corner radii which can marginally affect volume.
  • Material Density Variations: "Steel" is a broad term. Stainless steel (7900 kg/m³) is slightly heavier than mild steel (7850 kg/m³). Always check the specific grade.
  • Coatings and Finishes: Chrome plating, powder coating, or galvanization adds mass. While usually negligible for single bars, it adds up in bulk shipping.
  • Hollow vs. Solid: Ensure you are calculating for a tube (hollow) and not a solid bar. A solid oval bar will weigh significantly more.
  • Temperature: While negligible for weight, thermal expansion affects dimensions. Measurements should be taken at standard room temperature.

Frequently Asked Questions (FAQ)

What is the difference between a flat-sided oval and an ellipse?

A flat-sided oval has two straight parallel sides connected by semicircles. An ellipse is a continuous curve with no straight lines. This calculator uses the flat-sided oval formula as it is the industry standard for structural tubing.

Can I calculate the weight of a solid oval bar?

Yes. To calculate a solid bar, set the "Wall Thickness" to exactly half of the "Height" (or slightly less to avoid validation errors). This effectively fills the internal void.

How accurate is this oval tube weight calculator?

The calculator is mathematically precise based on the inputs provided. However, real-world weights may vary due to manufacturing tolerances in wall thickness and material density.

Does this calculator work for plastic or wood?

Yes, provided you know the density. Select "Custom Density" in the material dropdown and enter the density of your specific plastic or wood type.

Why is my result showing "NaN"?

This usually happens if an input is left empty or contains non-numeric characters. Ensure all fields are filled with valid numbers.

What is the density of mild steel?

The standard density used for mild steel is 7850 kg/m³ or approximately 0.284 lbs/in³.

Can I calculate the weight of multiple tubes at once?

Yes, use the "Quantity" field to multiply the single tube weight by the number of pieces required.

Is the weight calculated including packaging?

No, the result is the net weight of the metal tube only. You must add allowances for packaging materials (pallets, wrap, straps) separately.

Related Tools and Resources

Explore our other engineering and metal weight calculators:

© 2023 Financial & Engineering Tools. All rights reserved.
Use for estimation purposes only. Always verify with a structural engineer.

// Initialize default values var currentUnit = 'metric'; // 'metric' or 'imperial' // Densities in kg/m^3 var densities = { '7850': 7850, // Steel '7900': 7900, // SS '2700': 2700, // Al '8500': 8500, // Brass '8960': 8960, // Copper '4500': 4500 // Titanium }; // On load window.onload = function() { // Set defaults document.getElementById('width').value = 60; document.getElementById('height').value = 30; document.getElementById('thickness').value = 2; document.getElementById('length').value = 6; calculate(); }; function handleMaterialChange() { var matSelect = document.getElementById('material'); var customGroup = document.getElementById('customDensityGroup'); if (matSelect.value === 'custom') { customGroup.style.display = 'block'; } else { customGroup.style.display = 'none'; } calculate(); } function updateLabels() { var system = document.getElementById('unitSystem').value; currentUnit = system; var widthLabel = document.getElementById('widthLabel'); var heightLabel = document.getElementById('heightLabel'); var thickLabel = document.getElementById('thickLabel'); var lengthLabel = document.getElementById('lengthLabel'); var densityLabel = document.getElementById('densityLabel'); var widthInput = document.getElementById('width'); var heightInput = document.getElementById('height'); var thickInput = document.getElementById('thickness'); var lengthInput = document.getElementById('length'); var customDensityInput = document.getElementById('customDensity'); if (system === 'metric') { widthLabel.innerText = 'Tube Width (A) – Major Dimension (mm)'; heightLabel.innerText = 'Tube Height (B) – Minor Dimension (mm)'; thickLabel.innerText = 'Wall Thickness (t) (mm)'; lengthLabel.innerText = 'Total Length (L) (m)'; densityLabel.innerText = 'Custom Density (kg/m³)'; // Convert values roughly for UX if switching (optional, but nice) // Simple logic: if switching to metric, multiply inches by 25.4 // This is a simple toggle, we won't auto-convert values to avoid confusion, // just reset to sensible defaults for that unit system. widthInput.value = 60; heightInput.value = 30; thickInput.value = 2; lengthInput.value = 6; customDensityInput.value = 1000; } else { widthLabel.innerText = 'Tube Width (A) – Major Dimension (in)'; heightLabel.innerText = 'Tube Height (B) – Minor Dimension (in)'; thickLabel.innerText = 'Wall Thickness (t) (in)'; lengthLabel.innerText = 'Total Length (L) (ft)'; densityLabel.innerText = 'Custom Density (lbs/in³)'; widthInput.value = 2.36; // approx 60mm heightInput.value = 1.18; // approx 30mm thickInput.value = 0.08; // approx 2mm lengthInput.value = 20; // approx 6m customDensityInput.value = 0.1; // generic } calculate(); } function calculate() { // 1. Get Inputs var width = parseFloat(document.getElementById('width').value); var height = parseFloat(document.getElementById('height').value); var thick = parseFloat(document.getElementById('thickness').value); var length = parseFloat(document.getElementById('length').value); var qty = parseFloat(document.getElementById('quantity').value); var matValue = document.getElementById('material').value; // 2. Validation var hasError = false; // Reset errors document.getElementById('widthError').style.display = 'none'; document.getElementById('heightError').style.display = 'none'; document.getElementById('thickError').style.display = 'none'; if (isNaN(width) || width <= 0) { document.getElementById('widthError').style.display = 'block'; hasError = true; } if (isNaN(height) || height = Height (Major/Minor) // If user enters Width < Height, we just swap them for calculation purposes logically, // but visually we might warn them. For this calc, let's assume A is Major. var A = Math.max(width, height); var B = Math.min(width, height); if (isNaN(thick) || thick = B) { document.getElementById('thickError').style.display = 'block'; hasError = true; } if (hasError || isNaN(length) || isNaN(qty)) { return; // Stop calculation } // 3. Determine Density var density = 0; if (matValue === 'custom') { density = parseFloat(document.getElementById('customDensity').value); } else { density = parseFloat(matValue); // If imperial, we need to convert the standard kg/m3 to lbs/in3 for calculation // Or convert inputs to metric. // Strategy: Convert everything to Metric for calculation, then convert result back if needed. } // 4. Calculation Logic (Metric Base) // Inputs: A(mm), B(mm), t(mm), L(m), Density(kg/m3) var areaMM2 = 0; var volumeM3 = 0; var weightKG = 0; var weightPerMeter = 0; var outerPerimeter = 0; var innerPerimeter = 0; if (currentUnit === 'metric') { // Flat Sided Oval Area // Outer Area var rectAreaOut = (A – B) * B; var circAreaOut = Math.PI * Math.pow((B / 2), 2); var totalAreaOut = rectAreaOut + circAreaOut; // Inner Dimensions var A_in = A – (2 * thick); var B_in = B – (2 * thick); // Inner Area var rectAreaIn = (A_in – B_in) * B_in; var circAreaIn = Math.PI * Math.pow((B_in / 2), 2); var totalAreaIn = rectAreaIn + circAreaIn; areaMM2 = totalAreaOut – totalAreaIn; // Volume (Area in m2 * Length in m) var areaM2 = areaMM2 / 1000000; volumeM3 = areaM2 * length; // Weight weightKG = volumeM3 * density * qty; weightPerMeter = (areaM2 * density); // kg/m // Perimeters (approx) outerPerimeter = (Math.PI * B) + (2 * (A – B)); innerPerimeter = (Math.PI * B_in) + (2 * (A_in – B_in)); } else { // Imperial Calculation // Inputs: A(in), B(in), t(in), L(ft), Density(lbs/in3 or custom) // If standard material selected, density is in kg/m3. Convert to lbs/in3. // 1 kg/m3 = 0.000036127 lbs/in3 var densityImp = (matValue === 'custom') ? density : (density * 0.000036127); // Outer Area (sq in) var rectAreaOut = (A – B) * B; var circAreaOut = Math.PI * Math.pow((B / 2), 2); var totalAreaOut = rectAreaOut + circAreaOut; // Inner Dimensions var A_in = A – (2 * thick); var B_in = B – (2 * thick); // Inner Area var rectAreaIn = (A_in – B_in) * B_in; var circAreaIn = Math.PI * Math.pow((B_in / 2), 2); var totalAreaIn = rectAreaIn + circAreaIn; var areaSqIn = totalAreaOut – totalAreaIn; // Volume (sq in * length in inches) var lengthInches = length * 12; var volumeCuIn = areaSqIn * lengthInches; // Weight (lbs) var weightLbs = volumeCuIn * densityImp * qty; var weightPerFoot = (areaSqIn * 12 * densityImp); // lbs/ft // Map to display variables weightKG = weightLbs; // variable name reuse for display weightPerMeter = weightPerFoot; areaMM2 = areaSqIn; // actually sq in volumeM3 = volumeCuIn; // actually cu in outerPerimeter = (Math.PI * B) + (2 * (A – B)); innerPerimeter = (Math.PI * B_in) + (2 * (A_in – B_in)); } // 5. Update UI var unitWeight = (currentUnit === 'metric') ? 'kg' : 'lbs'; var unitLength = (currentUnit === 'metric') ? 'm' : 'ft'; var unitArea = (currentUnit === 'metric') ? 'mm²' : 'in²'; var unitVol = (currentUnit === 'metric') ? 'cm³' : 'in³'; var unitPerim = (currentUnit === 'metric') ? 'mm' : 'in'; // Format Volume for display (m3 is too big for small parts, use cm3 for metric) var displayVol = (currentUnit === 'metric') ? (volumeM3 * 1000000) : volumeM3; document.getElementById('totalWeight').innerText = weightKG.toFixed(2); document.getElementById('weightUnit').innerText = unitWeight; document.getElementById('weightPerLength').innerText = weightPerMeter.toFixed(3) + ' ' + unitWeight + '/' + unitLength; document.getElementById('areaResult').innerText = areaMM2.toFixed(2) + ' ' + unitArea; document.getElementById('volResult').innerText = displayVol.toFixed(2) + ' ' + unitVol; // Update Table var tableBody = document.getElementById('resultTableBody'); var densityDisplay = (currentUnit === 'metric') ? density + ' kg/m³' : ((matValue === 'custom') ? density + ' lbs/in³' : (density * 0.000036127).toFixed(4) + ' lbs/in³'); tableBody.innerHTML = 'Material Density' + densityDisplay + '' + 'Outer Perimeter' + outerPerimeter.toFixed(2) + ' ' + unitPerim + '' + 'Inner Perimeter' + innerPerimeter.toFixed(2) + ' ' + unitPerim + '' + 'Total Pieces' + qty + ''; // Draw Canvas drawCanvas(A, B, thick); } function drawCanvas(A, B, t) { var canvas = document.getElementById('tubeCanvas'); var ctx = canvas.getContext('2d'); var w = canvas.width; var h = canvas.height; ctx.clearRect(0, 0, w, h); // Scaling // We need to fit A (width) and B (height) into canvas with padding var padding = 20; var maxDrawW = w – (padding * 2); var maxDrawH = h – (padding * 2); var scale = Math.min(maxDrawW / A, maxDrawH / B); var drawA = A * scale; var drawB = B * scale; var drawT = t * scale; var cx = w / 2; var cy = h / 2; // Draw Outer Shape (Flat Sided Oval) // Rectangle part width = drawA – drawB // Circle radius = drawB / 2 var r = drawB / 2; var straightLen = drawA – drawB; var halfStraight = straightLen / 2; ctx.beginPath(); ctx.strokeStyle = '#004a99'; ctx.lineWidth = 2; ctx.fillStyle = '#e9ecef'; // Start top right of straight section ctx.moveTo(cx + halfStraight, cy – r); // Line to top left ctx.lineTo(cx – halfStraight, cy – r); // Left Arc ctx.arc(cx – halfStraight, cy, r, 1.5 * Math.PI, 0.5 * Math.PI, true); // Line to bottom right ctx.lineTo(cx + halfStraight, cy + r); // Right Arc ctx.arc(cx + halfStraight, cy, r, 0.5 * Math.PI, 1.5 * Math.PI, true); ctx.closePath(); ctx.fill(); ctx.stroke(); // Draw Inner Shape (Hole) // Inner dimensions var drawA_in = drawA – (2 * drawT); var drawB_in = drawB – (2 * drawT); if (drawB_in > 0 && drawA_in > 0) { var r_in = drawB_in / 2; var straightLen_in = drawA_in – drawB_in; var halfStraight_in = straightLen_in / 2; ctx.beginPath(); ctx.fillStyle = '#ffffff'; ctx.strokeStyle = '#004a99'; ctx.moveTo(cx + halfStraight_in, cy – r_in); ctx.lineTo(cx – halfStraight_in, cy – r_in); ctx.arc(cx – halfStraight_in, cy, r_in, 1.5 * Math.PI, 0.5 * Math.PI, true); ctx.lineTo(cx + halfStraight_in, cy + r_in); ctx.arc(cx + halfStraight_in, cy, r_in, 0.5 * Math.PI, 1.5 * Math.PI, true); ctx.closePath(); ctx.fill(); ctx.stroke(); } // Add Dimensions Text ctx.fillStyle = '#333′; ctx.font = '12px Arial'; ctx.textAlign = 'center'; ctx.fillText('A: ' + A, cx, cy – r – 5); ctx.fillText('B: ' + B, cx + halfStraight + r + 15, cy); } function resetCalc() { document.getElementById('width').value = (currentUnit === 'metric') ? 60 : 2.36; document.getElementById('height').value = (currentUnit === 'metric') ? 30 : 1.18; document.getElementById('thickness').value = (currentUnit === 'metric') ? 2 : 0.08; document.getElementById('length').value = (currentUnit === 'metric') ? 6 : 20; document.getElementById('quantity').value = 1; calculate(); } function copyResults() { var weight = document.getElementById('totalWeight').innerText; var unit = document.getElementById('weightUnit').innerText; var area = document.getElementById('areaResult').innerText; var text = "Oval Tube Weight Calculation:\n" + "Total Weight: " + weight + " " + unit + "\n" + "Cross Section Area: " + area + "\n" + "Calculated using Oval Tube Weight Calculator."; var tempInput = document.createElement("textarea"); tempInput.value = text; document.body.appendChild(tempInput); tempInput.select(); document.execCommand("copy"); document.body.removeChild(tempInput); var btn = document.querySelector('.btn-copy'); var originalText = btn.innerText; btn.innerText = "Copied!"; setTimeout(function(){ btn.innerText = originalText; }, 2000); }

Leave a Comment