पोजिशन्ड एलिमेंट का कौन सा भाग विजिबल है, यह वापस करने के लिए, जावास्क्रिप्ट में clip प्रॉपर्टी का उपयोग करें।
उदाहरण
इमेज को क्लिप करना सीखने के लिए निम्न कोड चलाकर देखें:
<!DOCTYPE html> <html> <head> <style> img { position: absolute; top: 100px; } </style> </head> <body> <button type="button" onclick="display()">क्लिप करें</button><br> <img id="newImg" src="https://www.tutorialspoint.com/videotutorials/images/tutor_connect_home.jpg" width="170" height="150"> <script> function display() { document.getElementById("newImg").style.clip = "rect(10px 90px 90px 10px)"; } </script> </body> </html>