NLO LIVE CHART CODE FOR FINANCIAL WEBSITE

USE THIS CODE FOR FINANCIAL WEBSITE

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Fullscreen Iframe Example</title>
    <style>
        .iframe-container {
            position: relative;
            width: 100%;
            height: 600px;
            overflow: hidden;
        }
        .iframe-container iframe {
            width: 100%;
            height: 100%;
            border: 0;
        }
        .fullscreen-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            padding: 10px;
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }
        .fullscreen-btn:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<body>
    <div class="iframe-container">
        <button class="fullscreen-btn" onclick="toggleFullScreen()">Toggle Fullscreen</button>
        <iframe id="myIframe" src="https://nepsealpha.com/trading/chart?symbol=NLO" frameborder="0" allowfullscreen></iframe>
    </div>

    <script>
        function toggleFullScreen() {
            const iframe = document.getElementById('myIframe');
            if (document.fullscreenElement) {
                document.exitFullscreen();
            } else {
                iframe.requestFullscreen();
            }
        }
    </script>
</body>
</html>
HTML

Leave a Reply

Your email address will not be published. Required fields are marked *

Resize text
Scroll to Top